Separating native JDBC driver JAR from applet JAR - best way?

Since I want to allow the customers/users of my applet to choose their own native JDBC driver to purchase at their site, I don't bundle the JDBC driver into my applet's JAR file. During my testing, here's what I've done:
1. Deployed my applet HTML and JAR files to a web server folder.
2. Extracted my JDBC driver JAR file's contents to that same web server folder.
(My applet HTML contains 2 parameters that allow the applet to use the JDBC driver -- class name and connection string template.)
This works fine, but I'm wondering if I'm using the best techniques.
Questions:
1. Do the contents of the JDBC driver need to be extracted from its JAR file? If not, what do I do, if anything, to allow my applet to "see/find" the driver class within the JAR?
2. If the JDBC JAR file DOES need to have its contents extracted, is there a way to extract them to a central folder somewhere on the web server and have a variety of applets use them? If so, what do I need to do to make my applet "see/find" the file(s) in the central folder?
Possibly looking for this stucture on the web server:
/WebApps/JDBCfiles
/WebApps/MyDbApplet1
/WebApps/MyDbApplet2
/WebApps/MyDbApplet3
Any advice/recommendations? Thanks.

Is it possible for a client application to access a jarred JDBC driver? I'd like to deliver a JDBC driver packed in a jar file, however, it won't work, here is what I am tring to do
try {
     Class.forName("mfg.jdbc.myDriver").newInstance(); //--> throw an exception
m_Connection = DriverManager.getConnection(szURL, props);
catch(Exception e) {/...}
Before class myDriver and other classes from package mfg.jdbc were jarred, a client application used to get the connection just fine, now I get an exception "java.lang.ClassNotFoundException: mfg.jdbc.myDriver"
I am using Java 2 Platform, no problem in running a jarred command like java -jar jarredclass.jar
Any tips and hints would be gratfully received!
Simon

Similar Messages

  • Unable to deploy EJB: pipeline.jar from pipeline.jar:

    Hi
    While startng server i get this error. but from server console i see it is deployed
    properly.
    Why it is happeing ?
    Can anyone please gie insight into this ?
    Appreciate your time.
    Thanks,
    Nishant
    ####<Sep 8, 2003 9:34:18 AM EDT> <Info> <Data Synchronization> <kreme> <claimsportalserver>
    <main> <kernel identity> <> <00000
    0> <Application: portalApp; Data Repository of type Pipeline Data Repository created
    with persistence manager of type com.bea.
    p13n.appflow.pipeline.internal.PipelinePersistenceManager.>
    ####<Sep 8, 2003 9:34:18 AM EDT> <Error> <J2EE> <kreme> <claimsportalserver> <main>
    <kernel identity> <> <160001> <Error deplo
    ying application pipeline:
    Unable to deploy EJB: pipeline.jar from pipeline.jar:
    java.lang.AbstractMethodError
    at weblogic.jdbc.pool.ResultSet.getClob(ResultSet.java:957)
    at weblogic.jdbc.rmi.internal.ResultSetImpl.getClob(ResultSetImpl.java:1021)
    at weblogic.jdbc.rmi.SerialResultSet.getClob(SerialResultSet.java:1356)
    at com.bea.p13n.util.jdbc.GenericDatabase.getClob(GenericDatabase.java:457)
    at com.bea.p13n.management.data.repository.persistence.JdbcDataSource.createDataItems(JdbcDataSource.java:565)
    at com.bea.p13n.management.data.repository.persistence.JdbcDataSource.refresh(JdbcDataSource.java:495)
    at com.bea.p13n.management.data.repository.persistence.JdbcPersistenceManager.refresh(JdbcPersistenceManager.java:106)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.<init>(AbstractDataRepository.java:186)
    at com.bea.p13n.management.data.repository.internal.MasterDataRepository.<init>(MasterDataRepository.java:46)
    at com.bea.p13n.management.data.repository.DataRepositoryFactory.getMasterDataRepository(DataRepositoryFactory.java:27
    1)
    at com.bea.p13n.appflow.pipeline.internal.PipelineExecutorImpl.initialize(PipelineExecutorImpl.java:620)
    at com.bea.p13n.appflow.pipeline.internal.PipelineExecutorImpl.<init>(PipelineExecutorImpl.java:124)
    at com.bea.p13n.appflow.pipeline.internal.PipelineExecutorImpl_x8bn7v_Impl.<init>(PipelineExecutorImpl_x8bn7v_Impl.jav
    a:27)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:232)
    at weblogic.ejb20.manager.BaseEJBManager.allocateBean(BaseEJBManager.java:128)
    at weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.java:265)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:148)
    at weblogic.ejb20.pool.Pool.createInitialBeans(Pool.java:188)
    at weblogic.ejb20.manager.StatelessManager.initializePool(StatelessManager.java:375)
    at weblogic.ejb20.deployer.EJBDeployer.initializePools(EJBDeployer.java:1507)
    at weblogic.ejb20.deployer.EJBDeployer.start(EJBDeployer.java:1392)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:254)
    at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:85)
    at weblogic.j2ee.Application.addComponent(Application.java:294)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:164)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:375)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:303)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:256)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:207)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:732)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:714)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:417)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
    at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:952)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
    at $Proxy44.updateDeployments(Unknown Source)
    at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:4114)

    Hi
    While startng server i get this error. but from server console i see it is deployed
    properly.
    Why it is happeing ?
    Can anyone please gie insight into this ?
    Appreciate your time.
    Thanks,
    Nishant
    ####<Sep 8, 2003 9:34:18 AM EDT> <Info> <Data Synchronization> <kreme> <claimsportalserver>
    <main> <kernel identity> <> <00000
    0> <Application: portalApp; Data Repository of type Pipeline Data Repository created
    with persistence manager of type com.bea.
    p13n.appflow.pipeline.internal.PipelinePersistenceManager.>
    ####<Sep 8, 2003 9:34:18 AM EDT> <Error> <J2EE> <kreme> <claimsportalserver> <main>
    <kernel identity> <> <160001> <Error deplo
    ying application pipeline:
    Unable to deploy EJB: pipeline.jar from pipeline.jar:
    java.lang.AbstractMethodError
    at weblogic.jdbc.pool.ResultSet.getClob(ResultSet.java:957)
    at weblogic.jdbc.rmi.internal.ResultSetImpl.getClob(ResultSetImpl.java:1021)
    at weblogic.jdbc.rmi.SerialResultSet.getClob(SerialResultSet.java:1356)
    at com.bea.p13n.util.jdbc.GenericDatabase.getClob(GenericDatabase.java:457)
    at com.bea.p13n.management.data.repository.persistence.JdbcDataSource.createDataItems(JdbcDataSource.java:565)
    at com.bea.p13n.management.data.repository.persistence.JdbcDataSource.refresh(JdbcDataSource.java:495)
    at com.bea.p13n.management.data.repository.persistence.JdbcPersistenceManager.refresh(JdbcPersistenceManager.java:106)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.<init>(AbstractDataRepository.java:186)
    at com.bea.p13n.management.data.repository.internal.MasterDataRepository.<init>(MasterDataRepository.java:46)
    at com.bea.p13n.management.data.repository.DataRepositoryFactory.getMasterDataRepository(DataRepositoryFactory.java:27
    1)
    at com.bea.p13n.appflow.pipeline.internal.PipelineExecutorImpl.initialize(PipelineExecutorImpl.java:620)
    at com.bea.p13n.appflow.pipeline.internal.PipelineExecutorImpl.<init>(PipelineExecutorImpl.java:124)
    at com.bea.p13n.appflow.pipeline.internal.PipelineExecutorImpl_x8bn7v_Impl.<init>(PipelineExecutorImpl_x8bn7v_Impl.jav
    a:27)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:232)
    at weblogic.ejb20.manager.BaseEJBManager.allocateBean(BaseEJBManager.java:128)
    at weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.java:265)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:148)
    at weblogic.ejb20.pool.Pool.createInitialBeans(Pool.java:188)
    at weblogic.ejb20.manager.StatelessManager.initializePool(StatelessManager.java:375)
    at weblogic.ejb20.deployer.EJBDeployer.initializePools(EJBDeployer.java:1507)
    at weblogic.ejb20.deployer.EJBDeployer.start(EJBDeployer.java:1392)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:254)
    at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:85)
    at weblogic.j2ee.Application.addComponent(Application.java:294)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:164)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:375)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:303)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:256)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:207)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:732)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:714)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:417)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
    at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:952)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
    at $Proxy44.updateDeployments(Unknown Source)
    at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:4114)

  • Accessing a jar from another jar

    Please help. I am attempting to access a jdbc driver in a sqlserver.jar file from my own jar file. I can run it fine from code, but when I create my jar file I get a ClassNotFoundException. I know I must be doing something wrong in my jar creation or in my jar manifest file. I am using Forte for Java if that helps. Thanks in advance for any suggestions!

    Thanks for the help guys. I finally got it going. Apparently the sqlserver.jar I was referencing in turn referenced other jar files that I also needed to include in my manifest. Even though all of the jars were in my classpath, I couldn't make it run using %classpath%. Thanks again for the input!

  • "Error loading native JDBC driver library" received when connecting to a DB

    I recently installed 10g client onto my PC. After installation I now recieve an "Error loading native JDBC driver library" error when attempting to connect to a database.
    This is a dual core Dell loaded with XP sp 2. I am attempting to connect to a 10gR2 instance. I tried the solution mentioned in another post to no avail. I am using SQL Developer v 1.2.1 build main-32.13.

    Hi,
    I found this thread from googling and am having the same problem for four days now...
    For those who can get SQL Developer to work, could you please detail what properties you have in your installation? Could you please describe what we are supposed to see in the SQL Developer Properties tab? I found this tab in Help>About>Properties but have no idea where SQL Developer picks up those attributes. And it does not seem we can change any of them within SQL Developer. How frustrating!
    Even more frustrating is that I am able to access the database I want to connect to with SQL Plus (right click on the connect node in SQL Developer)...
    Thanks,
    Clueless

  • Failure loading native JDBC driver

    When i go into sql developer and try to create a connection for oracle using TNS connection identifier i get a failure loading native JDBC driver. any ideas?
    thanks
    m

    Can you create a basic connection? Which platform are you on? What version of sqldev are you running? What version of JDK do you have?
    K.

  • I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    Paragon even has non-destriuctive conversion utility if you do want to change drive.
    Hard to imagine using 3TB that isn't NTFS. Mac uses GPT for default partition type as well as HFS+
    www.paragon-software.com
    Some general Apple Help www.apple.com/support/
    Also,
    Mac OS X Help
    http://www.apple.com/support/macbasics/
    Isolating Issues in Mac OS
    http://support.apple.com/kb/TS1388
    https://www.apple.com/support/osx/
    https://www.apple.com/support/quickassist/
    http://www.apple.com/support/mac101/help/
    http://www.apple.com/support/mac101/tour/
    Get Help with your Product
    http://docs.info.apple.com/article.html?artnum=304725
    Apple Mac App Store
    https://discussions.apple.com/community/mac_app_store/using_mac_apple_store
    How to Buy Mac OS X Mountain Lion/Lion
    http://www.apple.com/osx/how-to-upgrade/
    TimeMachine 101
    https://support.apple.com/kb/HT1427
    http://www.apple.com/support/timemachine
    Mac OS X Community
    https://discussions.apple.com/community/mac_os

  • I have 21,000  photos stored in iphoto. I have a WD 1.5TB backup external hard drive.  What is the best way to erase about half of my photos on my internal hard drive?

    I have 21,000  photos stored in iphoto. I have a WD 1.5TB backup external hard drive.  What is the best way to erase about half of my photos on my internal hard drive?

    Here's one way to do what you want:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    Now you have two full versions of the Library.
    3. On the Internal library, trash the Events you don't want there
    Now you have a full copy of the Library on the External and a smaller subset on the Internal
    Some Notes:
    As a general rule: when deleting photos do them in batches of about 100 at a time. iPhoto can baulk at trashing large numbers at one go.
    You can choose which Library to open: Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library'
    You can keep the Library on the external updated with new imports using iPhoto Library Manager

  • HT1364 I just bought a new PC and now have ample space on my C drive to house my music Library which is currenlty installed on a external drive.  What is the best way to install and move the itunes library to my C Drive?

    I just bought a new PC and now have ample space on my C drive to house my music Library which is currenlty installed on a external drive.  What is the best way to install and move the itunes library to my C Drive?

    If the entire library is on the external drive then simply copy the iTunes folder into <User's Music> on the new computer, then install iTunes. If you've already installed iTunes you will want to remove the empty iTunes folder in <User's Music> first.
    If it turns out you only have the media folder on the external drive then take a look at this post...
    tt2

  • NW2004S Setting up JDBC driver for Sybase jconn2.jar

    Hi everyone, has anyone had experience setting up the sybase driver jconn2.jar using the visual admin?   I am following the guide BI JDBC Connector as described in http://help.sap.com/saphelp_nw70/helpdata/en/43/e35b3315bb2d57e10000000a422035/frameset.htm
    I have executed the Prerequisites and imported the jar file.   Now reading from the help guide it talks about connector properties such as username, password, url ...etc.  I don't know where to set these.  Are they referring to The tab additional properties.
    I select "Drivers" -> NEW, gave it the name Sybase.  After I loaded the driver, I slected DataSources -> Create.  I gave it a name "Sybase", selected the Driver name "Sybase" from the drop down list, select JDBC version 2.0, it the Object Factory  I entered com.sybase.jdbc2.jdbc.SybDataSource (I also verified this class is in the jar file.
    For the DatSource Type I select ConnectionPoolDataSource. and for the CPDS classname I enterd com.sybase.jdbc2.jdbc.SybXADataSource (also verified the class is in the jar file.  Now for Addtional properties, I entered key/value DatabaseName/Password, PortNumber, ServerName, User.  For SQL Engine I selected open SQL.
    Now when I hit save I get "Error occurred while starting application com/Sybase. 
    I looked at the default trace file and can't figure the error is all about.  Also.  I tried using SQL Engine "Vendor SQL" and got same error message, then I selected DataSource Type XADataSource.   Same problem and it just won't start.
    Here is the error I am seeing in the default trace file.
    om.sap.engine.services.connector##com.sap.engine.services.connec
    tor#J2EE_ADMIN#16239####e77b19006dd811dcaea40003ba21a6f5#SAPEngine_Application_Thread[impl:3]_39##0#0#Error##Plain###ResourceObjectF
    actory.getConnectionSet(Sybase), Exception: com.sap.engine.services.connector.exceptions.BaseResourceException: ConnectionFactory "S
    ybase" does not exist. Possible reasons: the connector in which ConnectionFactory "Sybase" is defined is not deployed or not started
            at com.sap.engine.services.connector.ResourceObjectFactory.getConnectionSet(ResourceObjectFactory.java:671)
            at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.listFreeConnections(DataSourceManagerImpl.java:540)
            at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.getCurrentSize(DataSourceManagerImpl.java:950)
            at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.invoke(DefaultMBeanInvoker.java:58)
            at com.sap.pj.jmx.mbeaninfo.AdditionalInfoProviderMBean.invoke(AdditionalInfoProviderMBean.java:289)
            at com.sap.pj.jmx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:944)
            at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.invoke(MBeanServerWrapperInterceptor.java:288)
            at com.sap.engine.services.jmx.CompletionInterceptor.invoke(CompletionInterceptor.java:409)
            at com.sap.pj.jmx.server.interceptor.BasicMBeanServerInterceptor.invoke(BasicMBeanServerInterceptor.java:277)
            at com.sap.jmx.provider.ProviderInterceptor.invoke(ProviderInterceptor.java:258)
            at com.sap.engine.services.jmx.RedirectInterceptor.invoke(RedirectInterceptor.java:340)
            at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:330)
            at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.invoke(MBeanServerSecurityWrapper.java:287)
            at com.sap.engine.services.jmx.MBeanServerInvoker.invokeMbs(MBeanServerInvoker.java:131)
            at com.sap.engine.services.jmx.ClusterInterceptor.invokeMbs(ClusterInterceptor.java:212)
            at com.sap.engine.services.jmx.ClusterInterceptor.invoke(ClusterInterceptor.java:766)
            at com.sap.engine.services.jmx.MBeanServerInterceptorInvoker.invokeMbs(MBeanServerInterceptorInvoker.java:102)
            at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl.invokeMbs(P4ConnectorServerImpl.java:61)
            at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImplp4_Skel.dispatch(P4ConnectorServerImplp4_Skel.java:64)
            at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:312)
            at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:199)
            at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessag
    eListener.java:33)
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    #1.#0003BA21A6F5005A000003F8000012D000043B340955A9AE#1190994587789#com.sap.engine.services.connector##com.sap.engine.services.connec
    tor#J2EE_ADMIN#16239####e77b19006dd811dcaea40003ba21a6f5#SAPEngine_Application_Thread[impl:3]_7##0#0#Error##Plain###ResourceObjectFa
    ctory.getConnectionSet(Sybase), Exception: com.sap.engine.services.connector.exceptions.BaseResourceException: ConnectionFactory "Sy
    base" does not exist. Possible reasons: the connector in which ConnectionFactory "Sybase" is defined is not deployed or not started.
            at com.sap.engine.services.connector.ResourceObjectFactory.getConnectionSet(ResourceObjectFactory.java:671)
            at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.listUsedConnections(DataSourceManagerImpl.java:565)
            at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.getUsedConnectionsCount(DataSourceManagerImpl.java:967)
            at sun.reflect.GeneratedMethodAccessor130.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.invoke(DefaultMBeanInvoker.java:58)
            at com.sap.pj.jmx.mbeaninfo.AdditionalInfoProviderMBean.invoke(AdditionalInfoProviderMBean.java:289)
            at com.sap.pj.jmx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:944)
            at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.invoke(MBeanServerWrapperInterceptor.java:288)
            at com.sap.engine.services.jmx.CompletionInterceptor.invoke(CompletionInterceptor.java:409)
            at com.sap.pj.jmx.server.interceptor.BasicMBeanServerInterceptor.invoke(BasicMBeanServerInterceptor.java:277)
            at com.sap.jmx.provider.ProviderInterceptor.invoke(ProviderInterceptor.java:258)
            at com.sap.engine.services.jmx.RedirectInterceptor.invoke(RedirectInterceptor.java:340)
            at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:330)
            at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.invoke(MBeanServerSecurityWrapper.java:287)
            at com.sap.engine.services.jmx.MBeanServerInvoker.invokeMbs(MBeanServerInvoker.java:131)
            at com.sap.engine.services.jmx.ClusterInterceptor.invokeMbs(ClusterInterceptor.java:212)
            at com.sap.engine.services.jmx.ClusterInterceptor.invoke(ClusterInterceptor.java:766)
            at com.sap.engine.services.jmx.MBeanServerInterceptorInvoker.invokeMbs(MBeanServerInterceptorInvoker.java:102)
            at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl.invokeMbs(P4ConnectorServerImpl.java:61)
            at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImplp4_Skel.dispatch(P4ConnectorServerImplp4_Skel.java:64)
            at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:312)
    And it goes on and on.

    Used the following jconn3.jar from http://www.sybase.com/detail?id=1041013.
    Changed, DriverName to com.sybase.jdbc3.SybDataSource

  • Oracle jdbc driver class and classes12.jar whether deprecated.?

    Hi All,
    1. In one of the post, it has been told that oracle.jdbc.driver.OracleDriver will be deprecated and also recommended to used oracle.jdbc.OracleDriver.
    According to that post, I changed the driver class name in my code as below:
    Class.forName("oracle.jdbc.OracleDriver");
    Then to check the driver name, I insert the below code:
    Enumeration<Driver> driverEnum = DriverManager.getDrivers();
    +while (driverEnum.hasMoreElements()){+
    System.out.println("driver : "driverEnum.nextElement());+
    +}+
    Below is the output:
    driver : oracle.jdbc.driver.OracleDriver@addbf1
    Even after specifying the driver class name to be used as oracle.jdbc.OracleDriver, why it is taking oracle.jdbc.driver.OracleDriver..?
    INFO : The Oracle JDBC Driver (classes12.jar) version is 10.2.0.4.0.
    2. We are using classes12.jar for developing all JDBC code. In Oracle Database 11g Release 2 (11.2.0.2.0) JDBC Drivers, there is no classes12.jar. Is this deprecated? Which jar can be used instead of classes12.jar?
    Thanks in advance.

    In Oracle Database 11g Release 2 (11.2.0.2.0) JDBC Drivers, there is no classes12.jar. Is this deprecated? Which jar can be used instead of classes12.jar?For JDBC 4.0 features ojdbc6.jar with JDK 6.0.
    For JDBC 3.0 support ojdbc 5.jar with JDK 5.0
    http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html

  • Oracle JDBC driver initilalize an applet in the background

    I am writing an APPLICATION that is connecting with database.
    When I execute the code two dialog windows with title 'APPLET ALERT' appear and it ask for a permission:
    -The applet is attempting to invoke the java/lang/System.getProperty() operation on user.name
    -The applet is attempting to connect to [database name]
    When I allow permissions then program continues ok, when i disallow then an exception is thrown: Exception in thread "main" com.trend.iwss.jscan.runtime.AppletTrapStopError: Applet disabled by IWSVA Javascan site policy.
    Whether I allow or disallow following output is printed on the console:
    Current policy properties:
    mmc.sess_pe_act.block_unsigned: false
    window.num_max: 5
    jscan.sess_applet_act.sig_trusted: pass
    file.destructive.state: disabled
    jscan.sess_applet_act.block_all: false
    window.num_limited: true
    jscan.sess_applet_act.unsigned: instrument
    mmc.sess_pe_act.action: validate
    jscan.session.daemon_protocol: http
    file.read.state: disabled
    mmc.sess_pe_act.block_invalid: true
    mmc.sess_pe_act.block_blacklisted: false
    net.bind_enable: false
    jscan.session.policyname: TU1DIERlZmF1bHQgUG9saWN5
    mmc.sess_cab_act.block_unsigned: false
    file.nondestructive.state: disabled
    jscan.session.origin_uri: http://download.oracle.com/otn/utilities_drivers/jdbc/111070/ojdbc6.jar
    mmc.sess_cab_act.action: validate
    net.connect_other: false
    jscan.session.user_ipaddr: 10.10.0.110
    jscan.sess_applet_act.sig_invalid: block
    mmc.sess_cab_act.block_invalid: true
    thread.thread_num_max: 8
    jscan.sess_applet_act.sig_blacklisted: block
    net.connect_src: true
    thread.thread_num_limited: true
    jscan.sess_applet_act.stub_out_blocked_applet: true
    mmc.sess_cab_act.block_blacklisted: true
    jscan.session.user_name: 10.10.0.110
    thread.threadgroup_create: false
    file.write.state: disabled
    -->> returning Frame NULL
    BaseDialog: owner frame is a java.awt.Frame
    Why is the driver initializing an applet? What should I change?
    I am using JDK 1.6 and driver 11g Release 1 (11.1.0.7.0) - ojdbc6.jar, database is Oracle 9i (9.2.0.7.0).
    Below is my code.
    import java.sql.*;
    public class Test {
    public static void main(String args[]) {
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:thin:@DBNAME:1521:DBNAME", "user", "password");
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt
    .executeQuery("select 'Hello '||USER||'.' from dual");
    while (rset.next())
    System.out.println(rset.getString(1));
    rset.close();
    stmt.close();
    conn.close();
    } catch (Exception e) {
    System.out.println(e.getMessage());
    }

    This is a console software. The code above is only an example but it causes the same effect.
    The program behavior is the same whether I start it from Eclipse (normal or debug) or from command line.
    I think the case is our company IWSVA internet scanner, a kind of firewall.
    I found on google few similar problems with IWSVA or IWSS but with no solution.
    Already our administrators are checking the configuration.
    +When I allow permissions then program continues ok, when i disallow then an exception is thrown: Exception in thread "main" com.trend.iwss.jscan.runtime.AppletTrapStopError: Applet disabled by IWSVA Javascan site policy+

  • Accessing Informatica File Archive Service using its native JDBC driver

    Good morning,
    Using the Informatica ILM suite, we've retired a number of database applications (which ran on Oracle) into the so-called Optimized File Archive, or OFA.
    The information stored in there can be accessed using their File Archive Service, or FAS.
    To allow access for certain tools, they've also got an ODBC and JDBC driver (from the original company that created the archive bit, RainStor), to be able to get to tables in archives.
    I've been able to set it up for Aquafold's Aqua Data Studio (ADS), but given that that is shareware I've only got an evaluation version, expiring in 2 weeks.
    Since SQLdeveloper, like ADS, is a Java-based tool, and it also allows for third party JDBC drivers, I'm inclined to think that somehow SQLdeveloper should also be able to connect to those archives. Unfortunately, I always get an error message: "Invalid connection information specified. Verify the URL format for the specified driver"
    There are some slight differences between ADS and SQLdev in setting up such a JDBC connection.
    In ADS, apart from providing user/pw, I have to specify following:
    - name of the JDBC driver ("com.simba.client.core.SimbaJDBCDriver")
    - location of the JDBC driver (e.g. "C:\Ora\RainStorJDBC-3.0.1.2.jar")
    - JDBC URL of format "jdbc:simba://<host>:<port>;Archive=<archive>;ConnectionTimeout=3600;Parser=ORACLE"
    In SQLdev I can import the JDBC driver (menu > Tools > Preferences, then under Database > Third Party JDBC Drivers), and in the Database Connection Screen create a new connection, provide the user/pw of the so-called Service Manager (from FAS), and choose Connection Type "Advanced" to then specify the "Custom JDBC URL", which would have to be the same as above. If I test the connection, I get an instant error:
    "Status: Failure -Test failed: Invalid connection information specified. Verify the URL format for the specified driver".
    Informatica's Global Customer Support are saying that SQLdev can't do it, but I'm just wondering whether some really bright lights in the Oracle community have found an alternative route to be able to connect to such FAS/OFA archives. Given the similarities between ADS and SQLdev, to me it seems it - somehow - has to be possible as well...
    Thanks in advance for thinking about this problem/challenge.
    Cheers!
    Edited by: exapat on Dec 7, 2012 10:43 AM
    Did some further investigations, on other third party drivers. Those ones (e.g. for SQL Server) - when loaded - create an extra tab in the connection screen.
    The RainStor JDBC driver does not do that, and I can imagine that that's where it falls short.
    If indeed the case, what could be done to overcome this?

    Hi,
    Did some further investigations, on other third party drivers ... If indeed the case, what could be done to overcome this?That is the case. Currently browsing and migration support for third-party databases is limited to the following:
    http://www.oracle.com/technetwork/developer-tools/sql-developer/supportedmigplatforms-086703.html
    See section 1.1 for currently supported databases and section 1.3 for those planned for a future release.
    To see an example of some (all?) of the extra bits needed to support browsing of a third-party database, find the extensions directory in your SQL Developer installation, look for
    oracle.sqldeveloper.thirdparty.browsers.jarthen browse it to see the various class, properties, and xml files necessary for supporting connections to databases like mysql or sybase. You may conclude adding browsing support is not all that complicated. Migration support is an entirely different matter, however. Oracle is the thirdparty.browsers extension owner. Support for more third-party databases would normally be added by the SQL Developer group based on a database's general popularity or a feature request on the SQL Developer Exchange -- obviously a long-term proposition.
    If you look at the [Extensions Exchange|http://www.oracle.com/technetwork/developer-tools/sql-developer/extensions-083825.html] maybe you can get some ideas how best to proceed if you have the resources to build your own extension to support RainStor.
    Regards,
    Gary
    SQL Developer Team

  • SWING GUI blockes when doing a DB action with microsoft nativ JDBC driver

    hi,
    in a bigger project i have the problem that if i perform a DB action the GUI is blocked. It does not matter if i do the DB Action in invokeLater or
    in a SwingWorker or in a new Thread if i call the DB Action and i move another window over my window it is not refreshed.
    normally the GUI shouln�t be blocked if i use invokeLater. maybe it
    has something to do that i use the native DB driver? I am using JDK
    1.4. has anyone ever encounterd the same problem?
    alex
    package swingtest;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    public class GUIProblem extends JDialog {   
    // this method does a simple DB call to generate some load
    public void doMyDBCall()
    try {
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    Connection con = DriverManager.getConnection ("jdbc:microsoft:sqlserver://abgvdr71:1433;databasename=v52li;","sa","");
    Statement question0 = con.createStatement();
    ResultSet rs0=null;
    rs0 = question0.executeQuery("select * from intercept_24");
    boolean more=rs0.next();
    while (more) {    more=rs0.next();}
    catch (Exception sql)
    { sql.printStackTrace(); }
    public void doItinvokeLater()
    SwingUtilities.invokeLater(new Runnable(){    public void run(){       
    doMyDBCall();     
    public void doItSwingWorker()
    SwingWorker worker = new SwingWorker() {
    public Object construct() {
    System.out.println("worker start");
    doMyDBCall();
    return null;
    worker.start();
    System.out.println("finished .....");
    Object view = (Object) worker.get();
    public GUIProblem (){
    super((JFrame)null,"",true);
    JButton button = new JButton("do it");
    button.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent event)
    // calls it direct -> GUI blocked
    //doMyDBCall();
    // with invoke later -> GUI blocked
    //doItinvokeLater();
    // with the swingWorker -> GUI also blocks
    doItSwingWorker();     
    getContentPane().add(button);
    setSize(200,200);
    setVisible(true);
    public static void main(String [] args)
    {  new GUIProblem(); }
    }

    The invokeLater runs the Runnable in the event thread, so yes, that will block your GUI. You ALMOST got the SwingWorker right. DB call in the construct() method -- the construct() method executes outside the event thread, the finished() method executes in the event thread. The only problem is, you did a worker.get() method in your event thread (right after worker.start(0, and get() blocks until result is ready from construct() -- so, bingo, you're jammed up waiting in you event thread.

  • Control child jar from prarent jar

    Hi all,
    i am new to java. i need to control 3 jar files from a parent jar file. I want an equivalent functionality of "Createprocess" from VC++. is this possible? i need to implement this in mobile. is this a feasible question ?

    I'm afraid that's not possible. You can have several MIDlets in one MIDlet suite, but all of this must be in one jar. There's no way how you could access any other jar in the device.
    Security reasons, I guess.

  • Upgrading from PSE 10 best way download or buy disks

    I am not computer savy for starters. I have PSE 10 and need to upgrade but don't want to lose my photos in my organizer or lose organization (happened to me in past when updated). Is best way to prevent this by downloading a new version or buying the actual disks at a store? Also if I buy a new computer in the coming months will I need physical disks to put it on my new system or is there a way to get program and contents back if downloaded from old computer?

    I have PSE 10 and need to upgrade but don't want to lose my photos in my organizer or lose organization (happened to me in past when updated).
    Here are directions pertaining to the Organizer
    Use Backup, Restore to move catalog | Organizer | Elements 6 or later
    Is best way to prevent this by downloading a new version or buying the actual disks at a store? Also if I buy a new computer in the coming months will I need physical disks to put it on my new system or is there a way to get program and contents back if downloaded from old computer?
    You can purchase physical disks for installation, or download. You should consider that your new computer may not have a CD/DVD drive depending on what you purchase.

Maybe you are looking for