Ejb to ms sqlserver

In order to connect to ms sqlserver whether do i need to install any softs else. I currently don't have any soft exept Sun Apperver 8.0. I have built some bmp to test this duty. but i got some errors. Please tell me how. Thanks for help

Here is my config which works connecting to ms sql. I have the jar files in the lib/ext of the domain.
<jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.microsoft.jdbcx.sqlserver.SQLServerDataSource" fail-all-connections="false" idle-timeout-
in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="cts-mssqlserver-pool" pool-resize-quantity="2" res-type="javax.sql.DataSource" steady-pool-size="16">
<property name="portNumber" value="1433"/>
<property name="user" value="guest"/>
<property name="ServerName" value="foo.com"/>
<property name="selectMethod" value="cursor"/>
<property name="password" value="guest"/>

Similar Messages

  • J2EE1.3.1 dont support sql2000(type4) driver ??

    J2EE1.3.1 dont support sql2000(type4) driver ??
    Any success with any one ???
    I tried to connect j2ee1.3.1 to sql2000(type4) drivers.
    I am using j2sdke1.4.1 and os is win2k

    thanks for reply.....
    I am presently using clouscape without any problems....
    I have set classpath,default.properties and resource.properties properly and I have put the sql driver jar files in proper j2ee directory and made given the security permission in j2ee server.policy file.
    these r 2 lines I have added in default.properties
    jdbc.drivers=com.microsoft.jdbc.sqlserver.SQLServerDriver
    jdbc.datasources=jdbc/sqlserver|jdbc:microsoft:sqlserver://MR_T:1433;user=sa;password=sa;databasename=pubs
    these r lines added in resource.properties
    jdbcDataSource.5.name=jdbc/sqlserver
    jdbcDataSource.5.url=jdbc\:microsoft\:sqlserver\://MR_T\:1433;user\=sa;password\=sa;databasename\=pubs
    jdbcDriver.1.name=com.microsoft.jdbc.sqlserver.SQLServerDriver
    When i tried with simple java application with sql2000 type4 driver it works fine.
    I can see sql driver binding when I start j2ee server....finally I getting the following exception ....if I use sql2000 driver(type4)
    this is error which I am getting.........
    javax.ejb.CreateException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
         at EJBBean.ejbCreate(Unknown Source)
         at EJBBean_RemoteHomeImpl.create(EJBBean_RemoteHomeImpl.java:22)
         at EJBBeanRemoteHomeImpl_Tie._invoke(Unknown Source)
         at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:520)
         at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:210)
         at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:112)
         at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
         at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
         at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
    If u have any idea
    waiting for ur reply.........eagrly
    thanks

  • Error using SQLServer 2000 in Weblogic 8.1

    Hi,
    I am trying to use SQLServer for my Entity Beans in Weblogic 8.1.
    When I use the default PointBase database, my project deploys fine.
    However, when I create a new domain for using SQLServer 2000 and try
    to use the new data source for SQL Server 2000, I get the following
    error when I try to deploy my entity beans:
    Unable to deploy EJB: ProjItem from ProjectPlannerProj.jar:
    [EJB:010102]Error encountered while attempting to create Default DBMS
    Table: 'projitem'. Error Text: '[Microsoft][SQLServer 2000 Driver for
    JDBC][SQLServer]Incorrect syntax near the keyword 'End'.'.
    Can anybody tell me why I get this error with SQLServer 2000 and not
    with PointBase database?
    Thanks,
    Prab

    Prabjot Jaaj wrote:
    HI,
    Here is the output from the JDBC logging.
    Please let me know if you have any ideas.No, sorry. You need to open an official support case.
    Joe
    >
    Thanks,
    Prab
    JDBC log stream started at Sat Oct 02 01:34:05 EDT 2004
    DriverManager.initialize: jdbc.drivers = null
    JDBC DriverManager initialized
    registerDriver: driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
    DriverManager.getDriver("jdbc:pointbase:server://localhost:9093/workshop")
    trying driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
    registerDriver: driver[className=com.pointbase.jdbc.jdbcDriver,com.pointbase.jdbc.jdbcDriver@10eaeda]
    registerDriver: driver[className=com.pointbase.net.netJDBCDriver,com.pointbase.net.netJDBCDriver@a06e8d]
    registerDriver: driver[className=com.pointbase.jdbc.jdbcEmbeddedDriver,com.pointbase.jdbc.jdbcEmbeddedDriver@1217fef]
    getDriver returning driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
    DriverManager.getDriver("jdbc:pointbase:server://localhost:9093/workshop")
    trying driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
    getDriver returning driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
    DriverManager.getDriver("jdbc:pointbase:server://localhost:9093/workshop")
    trying driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
    getDriver returning driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
    SQLException: SQLState(HY000) vendor code(20001)
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]xa_open (0) returns -3
         at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
         at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source)
         at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeUpdateInternal(Unknown Source)
         at com.microsoft.jdbc.base.BasePreparedStatement.executeUpdate(Unknown Source)
         at com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.executeXaRpc(Unknown Source)
         at com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.executeXaRpc(Unknown Source)
         at com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.open(Unknown Source)
         at com.microsoft.jdbcx.base.BaseXAConnection.<init>(Unknown Source)
         at com.microsoft.jdbcx.base.BaseXADataSource.getXAConnection(Unknown Source)
         at com.microsoft.jdbcx.sqlserver.SQLServerDataSource.getXAConnection(Unknown Source)
         at weblogic.jdbc.common.internal.XAConnectionEnvFactory.makeConnection(XAConnectionEnvFactory.java:328)
         at weblogic.jdbc.common.internal.XAConnectionEnvFactory.createResource(XAConnectionEnvFactory.java:83)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1145)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1079)
         at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:171)
         at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1001)
         at weblogic.jdbc.common.internal.ConnectionPool.start(ConnectionPool.java:142)
         at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(ConnectionPoolManager.java:298)
         at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:180)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:331)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:591)
         at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:569)
         at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:241)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:731)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:710)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:484)
         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.private_invoke(RemoteMBeanServerImpl.java:985)
         at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:943)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
         at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
         at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7351)
         at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1304)
         at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:347)
         at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
         at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
         at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
         at weblogic.Server.main(Server.java:32)
    registerDriver: driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jdbc.sqlserver.SQLServerDriver@18edf3c]
    DriverManager.getDriver("jdbc:microsoft:sqlserver://localhost:1433")
    trying driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
    trying driver[className=com.pointbase.jdbc.jdbcDriver,com.pointbase.jdbc.jdbcDriver@10eaeda]
    trying driver[className=com.pointbase.net.netJDBCDriver,com.pointbase.net.netJDBCDriver@a06e8d]
    trying driver[className=com.pointbase.jdbc.jdbcEmbeddedDriver,com.pointbase.jdbc.jdbcEmbeddedDriver@1217fef]
    trying driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jdbc.sqlserver.SQLServerDriver@18edf3c]
    getDriver returning driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jdbc.sqlserver.SQLServerDriver@18edf3c]
    DriverManager.getDriver("jdbc:pointbase:server://localhost:9093/workshop")
    trying driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
    getDriver returning driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
    registerDriver: driver[className=weblogic.jdbc.jts.Driver,weblogic.jdbc.jts.Driver@60e78]
    registerDriver: driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@7db7d]
    SQLException: SQLState(ZD004) vendor code(15006)
    java.sql.SQLException: Invalid table name "WLI_PROCESS_PROCESSED_EVENT" specified at position 14.
         at com.pointbase.net.netJDBCPrimitives.handleResponse(Unknown Source)
         at com.pointbase.net.netJDBCPrimitives.handleJDBCObjectResponse(Unknown Source)
         at com.pointbase.net.netJDBCStatement.executeQuery(Unknown Source)
         at weblogic.jdbc.wrapper.Statement.executeQuery(Statement.java:345)
         at com.bea.wli.management.archiving.ArchUtil.checkSP2SP3Migration(ArchUtil.java:110)
         at com.bea.wli.management.BPMComponent.initializeTracking(BPMComponent.java:543)
         at com.bea.wli.management.BPMComponent.initManaged(BPMComponent.java:98)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.bea.wli.init.BPMStartupShutdown.invoke(BPMStartupShutdown.java:410)
         at com.bea.wli.init.BPMStartupShutdown.startup(BPMStartupShutdown.java:278)
         at com.bea.wli.init.BPMStartup.main(BPMStartup.java:23)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at weblogic.t3.srvr.StartupClassService.invokeMain(StartupClassService.java:229)
         at weblogic.t3.srvr.StartupClassService.invokeClass(StartupClassService.java:160)
         at weblogic.t3.srvr.StartupClassService.access$000(StartupClassService.java:36)
         at weblogic.t3.srvr.StartupClassService$1.run(StartupClassService.java:121)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.t3.srvr.StartupClassService.invokeStartupClass(StartupClassService.java:116)
         at weblogic.t3.srvr.StartupClassService.addDeployment(StartupClassService.java:88)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:331)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:591)
         at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:569)
         at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:241)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:731)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:710)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:484)
         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.private_invoke(RemoteMBeanServerImpl.java:985)
         at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:943)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
         at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
         at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7351)
         at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1304)
         at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:347)
         at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
         at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
         at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
         at weblogic.Server.main(Server.java:32)
    SQLException: SQLState(ZD004) vendor code(15006)
    java.sql.SQLException: Invalid table name "WLI_WORKLIST_ARCHIVING_SP2SP3" specified at position 20.
         at com.pointbase.net.netJDBCPrimitives.handleResponse(Unknown Source)
         at com.pointbase.net.netJDBCPrimitives.handleJDBCObjectResponse(Unknown Source)
         at com.pointbase.net.netJDBCStatement.executeQuery(Unknown Source)
         at weblogic.jdbc.wrapper.Statement.executeQuery(Statement.java:345)
         at com.bea.wli.worklist.beans.session.RemoteWorklistManagerBean.migrateFromSP2ToSP3(RemoteWorklistManagerBean.java:4641)
         at com.bea.wli.worklist.beans.session.RemoteWorklistManagerBean_us8t1c_EOImpl.migrateFromSP2ToSP3(RemoteWorklistManagerBean_us8t1c_EOImpl.java:2276)
         at com.bea.wli.worklist.WorklistSetup.initAfterManaged(WorklistSetup.java:207)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.bea.wli.init.BPMStartupShutdown.invoke(BPMStartupShutdown.java:410)
         at com.bea.wli.init.BPMStartupShutdown.startupAfterActivation(BPMStartupShutdown.java:294)
         at com.bea.wli.init.BPMStartupAfterActivation.main(BPMStartupAfterActivation.java:25)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at weblogic.t3.srvr.StartupClassService.invokeMain(StartupClassService.java:229)
         at weblogic.t3.srvr.StartupClassService.invokeClass(StartupClassService.java:160)
         at weblogic.t3.srvr.StartupClassService.access$000(StartupClassService.java:36)
         at weblogic.t3.srvr.StartupClassService$1.run(StartupClassService.java:121)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.t3.srvr.StartupClassService.invokeStartupClass(StartupClassService.java:116)
         at weblogic.t3.srvr.PostDeploymentStartupService.resume(PostDeploymentStartupService.java:63)
         at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
         at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
         at weblogic.Server.main(Server.java:32)
    SQLException: SQLState(42S02) vendor code(208)
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'projitem'.
         at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSCursorRequest.openCursor(Unknown Source)
         at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.execute(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeQuery(Unknown Source)
         at weblogic.jdbc.wrapper.Statement.executeQuery(Statement.java:345)
         at weblogic.ejb20.utils.TableVerifierSqlQuery.isTableCreatedByContainer(TableVerifierSqlQuery.java:203)
         at weblogic.ejb20.utils.TableVerifier.verifyOrCreateOrAlterTable(TableVerifier.java:119)
         at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTablesExist(RDBMSPersistenceManager.java:1021)
         at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:201)
         at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:253)
         at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:210)
         at weblogic.ejb20.manager.DBManager.setup(DBManager.java:162)
         at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:1057)
         at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1362)
         at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:631)
         at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:3274)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2173)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2146)
         at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2434)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2352)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2136)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2235)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2130)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2315)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    SQLException: SQLState(HY000) vendor code(16945)
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]The cursor was not declared.
         at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSCursorRequest.openCursor(Unknown Source)
         at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.execute(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeQuery(Unknown Source)
         at weblogic.jdbc.wrapper.Statement.executeQuery(Statement.java:345)
         at weblogic.ejb20.utils.TableVerifierSqlQuery.isTableCreatedByContainer(TableVerifierSqlQuery.java:203)
         at weblogic.ejb20.utils.TableVerifier.verifyOrCreateOrAlterTable(TableVerifier.java:119)
         at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTablesExist(RDBMSPersistenceManager.java:1021)
         at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:201)
         at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:253)
         at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:210)
         at weblogic.ejb20.manager.DBManager.setup(DBManager.java:162)
         at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:1057)
         at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1362)
         at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:631)
         at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:3274)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2173)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2146)
         at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2434)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2352)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2136)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2235)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2130)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2315)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    SQLException: SQLState(HY000) vendor code(156)

  • Why these EJB's are not worked.........................

    Hi all,
    Im using EJB 3.0 with Jboss 4.2. I deployed my ejb jar file and its client application (a war file) with EAR file.
    In my war I have servlet and Im trying to access my session bean through its local interface.
    Im following a example from 'O Rielly Enterprise Javabeans 3.0 5th edition'. I m tired so much with this application, finally thought to post my problem here.
    1. remote interface (from TravelAgent.jar)
    package com.titan;
    import javax.ejb.Remote;
    import com.titan.domain.Cabin;
    @Remote
    public interface TravelAgentRemote {
         public void createCabin(Cabin cabin);
         public Cabin findCabin(int id);
         public void sayHello();
    }2. Local interface (from TravelAgent.jar)
    package com.titan;
    import javax.ejb.Local;
    import com.titan.domain.Cabin;
    @Local
    public interface TravelAgentLocal {
         public void createCabin(Cabin cabin);
         public Cabin findCabin(int id);
         public void sayHi();
    }3. Session bean (from TravelAgent.jar)
    package com.titan;
    import javax.ejb.Stateless;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.persistence.EntityManager;
    import javax.persistence.EntityManagerFactory;
    import javax.persistence.Persistence;
    import javax.persistence.PersistenceContext;
    import javax.persistence.PersistenceContextType;
    import com.titan.domain.Cabin;
    @Stateless
    public class TravelAgentBean implements TravelAgentLocal, TravelAgentRemote{
         @PersistenceContext
         private EntityManager manager;
         //public static final String RemoteJNDIName = Tr
         //private EntityManagerFactory factory = Persistence.createEntityManagerFactory("titan");
         @Override
         public void createCabin(Cabin cabin) {
              manager.persist(cabin);
         @Override
         public Cabin findCabin(int id) {
              return manager.find(Cabin.class, id);
              //return null;
         @Override
         public void sayHello() {
              System.out.println("Hello EJB");
         @Override
         public void sayHi() {
              System.out.println("Hello EJB");
    }4. pesistence.xml (from jar's META-INF)
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
         <persistence-unit name="titan">
            <jta-data-source>java:comp/env/jdbc/sample</jta-data-source>
              <properties>
                  <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
                 <!-->property name="hibernate.hbm2ddl.auto" value="create-drop"/-->
              </properties>
         </persistence-unit>
    </persistence>5. Entity class
    package com.titan.domain;
    import java.io.Serializable;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.Table;
    @Entity
    @Table(name="cabin")
    public class Cabin implements Serializable{
         @Id
         @GeneratedValue(strategy=GenerationType.AUTO)
         @Column(name="id")
         private Integer id;
         //other fields and setters and getters
    }=========================================
    this is my servlet in war file.
    package test;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.ejb.EJB;
    import com.titan.TravelAgentBean;
    import com.titan.TravelAgentLocal;
    import com.titan.TravelAgentRemote;
    public class TestServlet extends HttpServlet{
         @EJB
         TravelAgentLocal travelAgentLocal;
         //@EJB TravelAgentBean travelAgentBean;
         @Override
         protected void doPost(HttpServletRequest req, HttpServletResponse resp)
                   throws ServletException, IOException {
              PrintWriter out = resp.getWriter();
              travelAgentLocal.sayHi();
    }this is my mssql-ds.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <datasources>
    <local-tx-datasource>
         <jndi-name>jdbc/sample</jndi-name>
         <use-java-context>false</use-java-context>
         <connection-url>jdbc:jtds:sqlserver://myip;databaseName=test;</connection-url>
         <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>
         <user-name>sa</user-name>
         <password>bdcadmin</password>
         <min-pool-size>10</min-pool-size>
         <max-pool-size>20</max-pool-size>
         <blocking-timeout-millis>5000</blocking-timeout-millis>
    </local-tx-datasource>
    </datasources>I have set war's web.xml and jboss-web.xml properly.
    But in servlet it generates a NullPointerException. Ill post Exception and generated log here.
    ObjectName: persistence.units:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,unitName=titan
      State: NOTYETINSTALLED
      I Depend On:
        jboss.jca:name=comp/env/jdbc/sample,service=DataSourceBinding
    ObjectName: persistence.units:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,unitName=titan
      State: NOTYETINSTALLED
      I Depend On:
        jboss.jca:name=comp/env/jdbc/sample,service=DataSourceBinding
    ObjectName: persistence.units:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,unitName=titan
      State: NOTYETINSTALLED
      I Depend On:
        jboss.jca:name=comp/env/jdbc/sample,service=DataSourceBinding
      Depends On Me:
        jboss.j2ee:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,name=TravelAgentBean,service=EJB3
    ObjectName: jboss.j2ee:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,name=TravelAgentBean,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
        persistence.units:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,unitName=titan
    --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
    ObjectName: jboss.jca:name=comp/env/jdbc/sample,service=DataSourceBinding
      State: NOTYETINSTALLED
      Depends On Me:
        persistence.units:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,unitName=titan
        persistence.units:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,unitName=titan
        persistence.units:ear=TravelAgent.ear,jar=TravelAgentEjb.jar,unitName=titan
    ObjectName: jboss.jca:service=DataSourceBinding,name=DefaultDS
      State: NOTYETINSTALLED
      Depends On Me:
        jboss.ejb:service=EJBTimerService,persistencePolicy=database
        jboss:service=KeyGeneratorFactory,type=HiLo
        jboss.mq:service=StateManager
        jboss.mq:service=PersistenceManager
    11:42:14,238 ERROR [[TestServlet]] Servlet.service() for servlet TestServlet threw exception
    java.lang.NullPointerException
              at java.lang.Thread.run(Unknown Source)
    12:02:11,946 INFO  [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/sample' from JNDI name 'jdbc/sample'
    12:02:12,055 INFO  [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/sample' to JNDI name 'jdbc/sample'I cannot understand what is the above part from the exception. I think its a important description about bean deployment. It seems like there is a problem when reading it.
    Please If anyone knows please help me.
    These Ejb books teach us by giving source code and saying the way how it is developed or deployed, but I think when we get in to real job this way is not helpfull.
    ONE GOOD EXAMPLE IS REALLY ENOUGH. But unable to find such a example.
    regards,
    Dil.

    well one problem I see is that you removed the "hsqldb-ds.xml" file, which contains the DefaultDS datasource. One of the JBoss services depends on this datasource. You can find the declaration for this MBean in deploy/uuid-key-generator.sar/META-INF/jboss-service.xml. Change the "Datasource JNDI name" to your MySQL datasource name.
    However, I don't think this is the real problem you are having. It seems like the persistence unit is not being deployed properly, so somewhere in the log output there should be another exception that says why the persistence unit is failing. Most likely a typo in the XML.
    edit: hmm, failed to see the other thread on this topic... OP: please don't double post, it only leads to confusion!

  • SQLServer datasource declaration in WebAS on Linux

    Hi everybody,
    I've got problem defining a datasource (SQLServer) in Viual Administrator of my Web AS which is installed on Linux.
    I think that all my parameters are correct for a connection but when I try, in DB initialisation tab, to test my connection by resquesting something in my database, I got the folloowing error :
    Caused by: com.sap.engine.services.ejb.exceptions.BaseEJBException: Can not obtain a JDBC connection
         at com.sap.engine.services.ejb.entity.pm.TransactionContext.simpleGetConnection(TransactionContext.java:198)
         at com.sap.engine.services.ejb.entity.pm.TransactionContext.getConnection(TransactionContext.java:278)
         at com.sap.engine.services.ejb.entity.pm.PersistenceManager.getConnectionForFindMethod(PersistenceManager.java:345)
         at com.twomoro.reso.op.ps.FamilleMoteurBean0PM.ejbFindAll(FamilleMoteurBean0PM.java:195)
         at com.twomoro.reso.op.ps.FamilleMoteurLocalHomeImpl0.findAll(FamilleMoteurLocalHomeImpl0.java:522)
         ... 47 more
    Caused by: com.sap.engine.services.dbpool.exceptions.BaseSQLException: ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
         at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:59)
         at com.sap.engine.services.ejb.entity.pm.PersistenceManager.getConnection(PersistenceManager.java:261)
         at com.sap.engine.services.ejb.entity.pm.TransactionContext.simpleGetConnection(TransactionContext.java:191)
         ... 51 more
    Caused by: com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
         at com.sap.engine.services.dbpool.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:188)
         at com.sap.engine.services.connector.jca.ConnectionHashSet.match(ConnectionHashSet.java:286)
         at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:231)
         at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:51)
         ... 53 more
    Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
         at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
         at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
         at com.sap.engine.services.dbpool.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:159)
    I was wondering if this is possible to declare an external datasource SQLServer on Windows, on a SAP Web Application Server which is installed on Linux ?
    Thanx a lot,
    Marc

    Okay I solved my problem,
    it wasn't a platform problem, but simply my windows firewall which was forbidding the connection.
    After desactivation, it works fine.

  • How to connect SqlServer 2000 In J2EE1.2

    I am chiniese,I am sorry for my poor english!
    I have set up the JDBC driver,and set up the J2EE sever.
    But when we make a Enity EJB,and use the "Deployment Seting",and then "Generate SQL Now "
    ,it tells me that there is no "suitale driver",
    I send the "default.properties" to you.
    Please tell what wrong .
    # JDBC Driver Examples:
    # Oracle thin driver: oracle.jdbc.driver.OracleDriver
    # Merant driver: intersolv.jdbc.sequelink.SequeLinkDriver
    # Cloudscape driver: COM.cloudscape.core.RmiJdbcDriver
    jdbc.drivers=COM.cloudscape.core.RmiJdbcDriver
    jdbc.dirvers=com.microsoft.jdbc.sqlserver.SQLServerDriver
    # JDBC URL Examples:
    # Oracle thin driver:
    # jdbc:oracle:thin:@<host>:<port>:<sid>
    # Cloudscape RMI driver:
    # jdbc:cloudscape:rmi:<database>;create=true
    # Merant driver:
    # jdbc:sequelink://<host>:<port>/[SQLServer];Database=<database>
    jdbc.datasources=jdbc/sqlServer|jdbc:microsoft:sqlserver://(local):1433;Database=music
    #jdbc.datasources=jdbc/sqlServer|jdbc:odbc:RegisterDataSource|jdbc/Cloudscape|jdbc:cloudscape:rmi:CloudscapeDB;create=true
    passivation.threshold.memory=128000000
    idle.resource.threshold=600
    user.transaction.jndiname=java:comp/UserTransaction
    log.directory=logs
    log.output.file=output.log
    log.error.file=error.log
    log.event.file=event.log
    distributed.transaction.recovery=false
    transaction.timeout=0
    sessionbean.timeout=0
    # DataSource configuration for JDBC 2.0 XA drivers only
    #jdbc20.datasources=jdbc/Merant|jdbc/XAMerant
    #xadatasource.0.jndiname=jdbc/XAMerant
    #xadatasource.0.classname=com.merant.sequelink.jdbcx.datasource.SequeLinkDataSource
    #xadatasource.0.dbuser=<dba user>
    #xadatasource.0.dbpassword=<dba password>
    #xadatasource.0.prop.url=jdbc:sequelink://<host>:<port>/[Oracle]
    # DataSource configuration for JDBC 2.0 XA drivers only

    in windows 2003,i have set the envirenment
    I use the jdk1.3
    the j2eesdk1.2
    I want to use JDBC 2.0 but I don't know how to config
    The userconfig.bat is:
    rem J2EE_CLASSPATH is appended to the classpath referenced by the EJB server.
    rem J2EE_CLASSPATH must include the location of the JDBC driver classes
    rem (except for the Cloudscape driver shipped with this release).
    rem Each directory is delimited by a semicolon.
    rem
    set J2EE_CLASSPATH=C:\j2sdkee1.2\lib\msbase.jar;C:\j2sdkee1.2\lib\mssqlserver.jar;C:\j2sdkee1.2\lib\msutil.jar
    rem
    rem JAVA_HOME refers to the directory where the Java(tm) 2 SDKrem Standard Edition software is installed.rem
    set JAVA_HOME=C:\jdk1.3
    rem
    # JDBC Driver Examples:
    # Oracle thin driver: oracle.jdbc.driver.OracleDriver
    # Merant driver: intersolv.jdbc.sequelink.SequeLinkDriver
    # Cloudscape driver: COM.cloudscape.core.RmiJdbcDriver
    jdbc.drivers=COM.cloudscape.core.RmiJdbcDriver
    jdbc.dirvers=com.microsoft.jdbc.sqlserver.SQLServerDriver
    # JDBC URL Examples:
    # Oracle thin driver:
    # jdbc:oracle:thin:@<host>:<port>:<sid>
    # Cloudscape RMI driver:
    # jdbc:cloudscape:rmi:<database>;create=true
    # Merant driver:
    # jdbc:sequelink://<host>:<port>/[SQLServer];Database=<database>
    #jdbc.datasources=jdbc/sqlServer|jdbc:microsoft:sqlserver://(local):1433;Database=music
    #jdbc.datasources=jdbc/sqlServer|jdbc:odbc:RegisterDataSource|jdbc/Cloudscape|jdbc:cloudscape:rmi:CloudscapeDB;create=true
    passivation.threshold.memory=128000000
    idle.resource.threshold=600
    user.transaction.jndiname=java:comp/UserTransaction
    log.directory=logs
    log.output.file=output.log
    log.error.file=error.log
    log.event.file=event.log
    distributed.transaction.recovery=false
    transaction.timeout=0
    sessionbean.timeout=0
    # DataSource configuration for JDBC 2.0 XA drivers only
    jdbc20.datasources=jdbc/sqlServer
    xadatasource.0.jndiname=jdbc/sqlServer
    xadatasource.0.classname=com.microsoft.jdbc.sqlserver.SQLServerDriver
    xadatasource.0.dbuser=music
    xadatasource.0.dbpassword=music
    xadatasource.0.prop.url=jdbc:microsoft:sqlserver://(local):1433;DatabaseName=music
    # DataSource configuration for JDBC 2.0 XA drivers only

  • EJB with ms SQL server 2000

    how to connect to sqlserver 2000 from ejb on sun application server

    You will need to create a Connection Pool using the asadmin or the gui admin console.
    We have tested the DataDirect and inet drivers and they work correctly.
    Once you create your Connection Pool, you JNDI entries will then map to the connection pool that you created.
    If you need specific configuration info, let me know.

  • EJB 3.0 AutoIncrement

    I have a requirement to use auto-increment support for my EJB / JPA persistent objects. The objects could be modified through a web interface, PDA interface, or service and the underlying database (developing in mysql 5) could be mysql, oracle, sql server, etc.
    There doesn't appear to be any strong evidence that a standard approach to auto-increment exists in EJB so I'm wondering what the best practice is (several articles I read states that the support is not there) however it is in hibernate and other frameworks...so I would guess it would be in EJB 3.0.
    I've seen one article that states to use a static class to query the underlying datasource (http://forums.sun.com/thread.jspa?forumID=13&threadID=5232947) while another to use some annotations on the entity beans (http://forums.sun.com/thread.jspa?forumID=13&threadID=734751).
    So what should I use?
    Thank you,
    Kris

    The @GeneratedValue annotation was introduced to make auto-generation of primary keys a breeze. This is the approach I have seen used on the web and in EJB3 books (there is a good section in Chapter 8 of EJB3 in Action by D Panda and co.) If you are looking for a standard approach I would opt for that. I have personally used it on Oracle, MySQL and SqlServer with no issues.
    m

  • [Microsoft][SQLServer 2000 Driver for JDBC] Broken pipe

    Using 10.1.2.0.2
    I have Web App in which I am connecting to MS SQLServer 2005. I have created a datasource on the server and used Microsoft's free JDBC drivers i.e. msutil.jar,mssqlserver.jar,msbase.jar. Now every now and then I am getting the following error when trying to connect to the SQLServer
    [Microsoft][SQLServer 2000 Driver for JDBC]Broken pipe;nested exception is: java.sql.SQLException:[Microsoft][SQLServer 2000 Driver for JDBC]Broken pipeAny ideas what might be wrong and how to take care of this issue.
    Thanks

    DataDirect driver is certified with Oracle Application Server accessing SQLServer, here is an example of a data source entry for SQLServer in OralceAS 10.1.2.x.
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="MerantDS"
    location="jdbc/MerantCoreSSDS"
    xa-location="jdbc/xa/MerantSSXADS"
    ejb-location="jdbc/MerantSSDS"
    connection-driver="com.oracle.ias.jdbc.sqlserver.SQLServerDriver"
    username="test"
    password="secret"
    url="jdbc:oracle:sqlserver://hostname:port;User=test;Password=secret"
    inactivity-timeout="30"
    />
    Here shows a SQLServer managed data source example and a SQLServer native source example in OracleAS 10.1.3.x:
    SQLServer Managed Data Source
    <connection-pool name="ConnectionSqlserver"
    max-connections="20"
    min-connections="1">
    <connection-factory
    factory-class="com.oracle.ias.jdbcx.sqlserver.SQLServerDataSource"
    user="msuser"
    password="mspass"
    url="jdbc:oracle:sqlserver://myserver\\myinstance;User=msuser;Password=mspass" >
    <property name="serverName" value="myserver\\myinstance"/>
    <xa-recovery-config>
    <password-credential>
    <username>msuser</username>
    <password>mspass</password>
    </password-credential>
    </xa-recovery-config>
    </connection-factory>
    </connection-pool>
    <managed-data-source connection-pool-name="ConnectionSqlserver"
    jndi-name="jdbc/mysqlserver"
    name="mysqlserver" />

  • Error deploying app to 10g 1.3 with SQLServer drivers...

    I developed a web application using JDeveloper 10.1.3 using Microsofts SQL Drivers to access SQLServer databases. The defined data sources work fine under the built in OC4j in Jedeveloper (10.1.3). The problem I encounter is when I try to deploy it to the llive server. It is encountering an error when trying to define the data sources. The error follows:
    [Oct 11, 2006 1:18:58 PM] Initializing ClassLoader(s)
    [Oct 11, 2006 1:18:58 PM] Initializing EJB container
    [Oct 11, 2006 1:18:58 PM] Loading connector(s)
    [Oct 11, 2006 1:18:58 PM] Starting up resource adapters
    [Oct 11, 2006 1:18:58 PM] Warning. Unable to set up connection factory to location valspar-intranet for a resource adapter in {1}
    [Oct 11, 2006 1:18:58 PM] application : valspar-intranet is in failed state
    [Oct 11, 2006 1:18:58 PM] Operation failed with error: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.microsoft.jdbc.sqlserver.SQLServerDriver
    I have uploaded the libraries necessary to use the drivers. Can anyone shed any light on this issue?
    Thanks in advance.

    i think you only want to add the Sql deriver jars to the library of the OC4J and this can be done as follow
    In a text editor, edit the application.xml file in <OracleHome>/j2ee/home/config/.
    Add <library> tags pointing to msbase.jar , msutil.jar, and mssqlserever.jar The syntax is <library path="<path>">
    For example, if you used the default installation path, you would add the following tags to the application.xml file:
    <library path="C:\Program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar"/>
    <library path="C:\Program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar"/>
    <library path="C:\Program files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar"/>
    for more Information
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtTopicFile.bc4j%7Cforeign_db%7Cbc_psqlserver%7Ehtml/

  • EJB 30 begginner question

    I am trying to write a simple program to populate a table through entity beans using ejb30 with annotations. Being a begginner my question could be completely idiotic, please bear with me :)
    I am using toplink as my persistence provider and i get this stracktrace
    INFO: Hibernate EntityManager 3.3.1.GA
    javax.persistence.PersistenceException: No Persistence provider for EntityManager named FormStorePersistenceService: Provider named oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider threw unexpected exception at create EntityManagerFactory:
    oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
    Local Exception Stack:
    Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
    Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: sun.misc.Launcher$AppClassLoader@a39137
    Internal Exception: java.lang.NullPointerException
         at oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:143)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:169)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:110)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
         at com.spireline.fs.appserver.kernel.businessprocess.formsservice.FormStoreImplTest.testFormPersistenceService(FormStoreImplTest.java:39)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
         at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
         at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
         at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
         at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
         at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
         at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
         at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
         at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
         at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
         at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
         at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
         at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    Caused by: java.lang.NullPointerException
         at java.util.Hashtable.put(Unknown Source)
         at java.util.Properties.setProperty(Unknown Source)
         at oracle.toplink.essentials.internal.ejb.cmp3.xml.parser.PersistenceContentHandler.startElement(PersistenceContentHandler.java:111)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processPersistenceXML(PersistenceUnitProcessor.java:151)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processPersistenceArchive(PersistenceUnitProcessor.java:99)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.getPersistenceUnits(PersistenceUnitProcessor.java:89)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:236)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:255)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:155)
         ... 25 more
    Provider named oracle.toplink.essentials.PersistenceProvider threw unexpected exception at create EntityManagerFactory:
    oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
    Local Exception Stack:
    Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
    Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: sun.misc.Launcher$AppClassLoader@a39137
    Internal Exception: java.lang.NullPointerException
         at oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:143)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:169)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:110)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
         at com.spireline.fs.appserver.kernel.businessprocess.formsservice.FormStoreImplTest.testFormPersistenceService(FormStoreImplTest.java:39)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
         at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
         at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
         at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
         at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
         at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
         at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
         at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
         at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
         at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
         at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
         at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
         at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    Caused by: java.lang.NullPointerException
         at java.util.Hashtable.put(Unknown Source)
         at java.util.Properties.setProperty(Unknown Source)
         at oracle.toplink.essentials.internal.ejb.cmp3.xml.parser.PersistenceContentHandler.startElement(PersistenceContentHandler.java:111)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processPersistenceXML(PersistenceUnitProcessor.java:151)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processPersistenceArchive(PersistenceUnitProcessor.java:99)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.getPersistenceUnits(PersistenceUnitProcessor.java:89)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:236)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:255)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:155)
         ... 25 more
    The following providers:
    org.hibernate.ejb.HibernatePersistence
    Returned null to createEntityManagerFactory.
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
         at com.spireline.fs.appserver.kernel.businessprocess.formsservice.FormStoreImplTest.testFormPersistenceService(FormStoreImplTest.java:39)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
         at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
         at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
         at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
         at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
         at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
         at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
         at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
         at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
         at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
         at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
         at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
         at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    my persistence.xml is in the classes/META-INF directory("classes" directory is in the classpath).My persistence.xml is shown below.
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
         <persistence-unit name ="FormStorePersistenceService" transaction-type="RESOURCE_LOCAL">
              <class>com.spireline.fs.appserver.kernel.dao.publication.Publication</class>
              <provider>oracle.toplink.essentials.PersistenceProvider</provider>
              <properties>
         <property name="toplink.jdbc.driver">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>
         <property name="toplink.jdbc.password">narsi40</property>
         <property name="toplink.jdbc.username">narsi40</property>
         <property name="toplink.jdbc.url">jdbc:sqlserver://testdb:1433;databaseName=narsi40</property>
         </properties>
         </persistence-unit>
    </persistence>
    It looks like the processes throws a nullpointerexception when it is parsing the above persistence.xml file and for the life of me i can't understand why !!!?
    Also i am bit baffled that it is trying to look for hibernate classes as it does specifiy
    *"org.hibernate.ejb.HibernatePersistence" as its provider, even though i have specified toplink as the provider in the persistence.xml. Can somebody explain what is happening here.*
    Thanks in advance
    Narsi

    I have already tried to google smack it..with no luck of course. Will post this in the hibernate forum.
    Thanks
    Narsi

  • XA Transactions Weblogic6.1-SQLServer

    Hello. I´m trying to start a XA UserTransaction from a session ejb
    (BMT), that involves two entities (each one to a different DB, and
    with transaction-type CMT Required).
    My server is Weblogic 6.1, and my driver is weblogic JDBC driver for
    MS SQLServer, althougth i´ve tried with the Microsoft driver.
    Each entity uses a diferent TX DataSource, and i´ve tried putting
    "Enable two-phase commit". The result is always the same:
    java.sql.SQLException: Connection has already been created in this tx
    context for pool named XXXXPool1. Illegal
    attempt to create connection from another pool: XXXXPool2
    Please, what´s happens? It´s supposed that both drivers supports XA
    transactions (i´ve already installed needed stored procedures for
    Microsoft Driver)
    lots of thanks in advance.

    Hi Rafa,
    Could you post here definitions of the pools and datasources?
    Regards,
    Slava Imeshev
    "Rafa" <[email protected]> wrote in message
    news:[email protected]..
    Hello. I´m trying to start a XA UserTransaction from a session ejb
    (BMT), that involves two entities (each one to a different DB, and
    with transaction-type CMT Required).
    My server is Weblogic 6.1, and my driver is weblogic JDBC driver for
    MS SQLServer, althougth i´ve tried with the Microsoft driver.
    Each entity uses a diferent TX DataSource, and i´ve tried putting
    "Enable two-phase commit". The result is always the same:
    java.sql.SQLException: Connection has already been created in this tx
    context for pool named XXXXPool1. Illegal
    attempt to create connection from another pool: XXXXPool2
    Please, what´s happens? It´s supposed that both drivers supports XA
    transactions (i´ve already installed needed stored procedures for
    Microsoft Driver)
    lots of thanks in advance.

  • A surprising exception when call the EJB

    OS:Windows-2000
    J2EE-Server:J2sdkee1.2.1
    Database:SQLServer-2000
    The CMP-bean---UserEJB has been deployed successfully.
    Main client program:
    UserHome userHome=(UserHome)PortableRemoteObject.narrow(objectRef,ejb.UserHome.class);
    User user=userHome.create(userid,password,name);
    When running the client program,exception occured like this:---
    java.rmi.ServerException: RemoteException occurred in server thread; nested exce
    ption is:
    java.rmi.RemoteException: Transaction aborted (possibly due to transacti
    on time out).; nested exception is:
    javax.transaction.RollbackException
    java.rmi.RemoteException: Transaction aborted (possibly due to transaction time
    out).; nested exception is:
    javax.transaction.RollbackException
    javax.transaction.RollbackException
    <<no stack trace available>>
    But a new data-row has been inserted into the table successfully.
    What on earth caused that? And how to solve this problem?
    Any reply is welcome.Thanks!

    I have only a partial solution (if you find it all I'll be happy to know myself...)
    I had the same problem. It occurs that the problem is related to the definitions of transactions attributes in the table of the transaction tab. go to this tab and change the attribute from "required" to "supported" (I assume you have "required" and it should not be) in the method which causes the exception.
    hope this helped.

  • Help me EJB deployer, you're my only hope...

    This request goes to anyone who has administered remote deployment of EJBs to JServer on any scale and has an opinion about it. I'm only looking for a 30,000 foot level response.
    My question is, is it possible to deploy the EJBs to a single Oracle Server, and then Replicate them to other servers, or do EJBs have to be deployed to each server directly?
    If not, is there a method for automating the deployment of EJBs to multiple Oracle servers other than replication?
    I have a management meeting comming up to present recommendations on whether we want to deploy EJBs to approx 250 remote servers over a 56K fixed line connection, or have a central server for deployment and have the clients at those 250 remote sites pointed to the central repository. The answer is obvious to me, go with the central server. But I haven't had any experience adminstering EJB deployment so I need to have some idea of how estimate the cost in terms of work hours, maintenance and $ to administer the remote deployment.

    Some comments/ideas:
    How long was the server running after this screenshot?  I ask because store.exe is only got a 1GB of RAM which is really low - it should grab most of the RAM within a few hours.
    The server was up for about 12 hours.  I believe an adjustment was made before to limit the Exchange memory usage.
    Strange that SearchIndexer (wsearch service) is so high although that may be a startup condition.
    The LT* processes seem to be a 3rd party monitoring tool - no idea why it would ever need that much CPU though (I thought you disabled this?).
    We had, but we cannot go forever without monitoring our client's server.  It has been pulled off in the past and results on performance are pretty much the same.
    The taskmgr process run by amnet_admin has used a lot of total CPU Time.  What is it? (can't see the command line).
    That's the user I was logged in as when I took the screenshot.  Even the task manager seems to eat up the CPU.
    The sqlserver process right above it is also busy - may want to look at the command line and figure out which SQL database that is (SBS has 3 - WSUS, Sharepoint, and SBS monitoring)
    I believe that's the SharePoint database.  They don't currently use their site.  Would you recommend a removal and reinstallation?  I would not completely remove as I know SBS doesn't like you removing parts of the complete package.
    Strange that vds.exe is 10% - that is the interface to the disk management interface IIRC.  Perhaps your monitoring service has gone awry here - definitely lose it.
    I'll see about pulling it off and I'll see if there are any improvements.
    -- Al

  • Javax.ejb.EJBException: Transaction aborted

    Hello everyone, I am new in javaEE6. When i try to develop and simple example i meet this error but i can't find which code line cause it. I use JSF EJB3.1 EclipseLink JPA 2.0 in Glassfish v3 and developed in Netbean6.8. Here is my Stack trace .
    Caused by: javax.ejb.EJBException: Transaction aborted
         at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:4997)
         at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4756)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1955)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1906)
         at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:198)
         at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:84)
         at $Proxy158.createUsers(Unknown Source)
         at home.tuan.bussiness.__EJB31_Generated__UsersEJB__Intf____Bean__.createUsers(Unknown Source)
         at home.tuan.controller.UsersController.doCreateUser(UsersController.java:40)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:234)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
         at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:98)
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
         ... 32 more
    Caused by: javax.transaction.RollbackException: Transaction marked for rollback.
         at com.sun.enterprise.transaction.JavaEETransactionImpl.commit(JavaEETransactionImpl.java:450)
         at com.sun.enterprise.transaction.JavaEETransactionManagerSimplified.commit(JavaEETransactionManagerSimplified.java:837)
         at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:4991)
         ... 48 more
    Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLSyntaxErrorException: Syntax error: Encountered "." at line 1, column 29.
    Error Code: -1
    Call: INSERT INTO ChatDatabase.dbo.Users (UserName, Pass) VALUES (?, ?)
         bind => [er, w]
    Query: InsertObjectQuery(home.tuan.model.Users@825299)My Entity is:
    package home.tuan.model;
    import java.io.Serializable;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.Table;
    * @author minhtuan
    @Entity
    @Table(name = "Users", catalog = "ChatDatabase", schema = "dbo")
    public class Users implements Serializable {
        private static final long serialVersionUID = 1L;
        @Id  
        @Column(name = "UserName")
        private String userName;
        @Column(name = "Pass")
        private String pass;
        public Users() {
        public Users(String userName, String pass) {
            this.userName = userName;
            this.pass = pass;
        public String getUserName() {
            return userName;
        public void setUserName(String userName) {
            this.userName = userName;
        public String getPass() {
            return pass;
        public void setPass(String pass) {
            this.pass = pass;
    }My session bean is:
    package home.tuan.bussiness;
    import home.tuan.model.Users;
    import java.util.ArrayList;
    import java.util.List;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    import javax.persistence.Query;
    * @author minhtuan
    @Stateless
    public class UsersEJB {
      @PersistenceContext(unitName="MavenTestPU")
      private EntityManager em ;
      public Users createUsers(Users newUser){
          em.persist(newUser);
          return newUser;
    }My controller class is:
    package home.tuan.controller;
    import home.tuan.bussiness.UsersEJB;
    import home.tuan.model.Users;
    import java.util.ArrayList;
    import java.util.List;
    import javax.ejb.EJB;
    import javax.faces.bean.ManagedBean;
    import javax.faces.bean.RequestScoped;
    import javax.persistence.EntityTransaction;
    import javax.persistence.Persistence;
    import javax.transaction.UserTransaction;
    * @author minhtuan
    @ManagedBean(name="UsersController")
    @RequestScoped
    public class UsersController {
        /** Creates a new instance of UsersController */
        @EJB
        UsersEJB userEJB;
        Users newUser = new Users();
        List<Users> listUsers = new ArrayList<Users>();
        public String doNewUser(){
            return "index.jsp";
        public String doCreateUser(){
            System.out.println("Den day rui");
            System.out.println(newUser.getUserName());
            System.out.println(newUser.getPass());
            newUser = userEJB.createUsers(newUser);
            return "index.jsp";
        public List<Users> getListUsers() {
            return listUsers;
        public void setListUsers(List<Users> listUsers) {
            this.listUsers = listUsers;
        public Users getNewUser() {
            return newUser;
        public void setNewUser(Users newUser) {
            this.newUser = newUser;
    }And my persistence.xml is:
    <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
      <persistence-unit name="MavenTestPU" transaction-type="JTA">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        <class>home.tuan.model.Users</class>
        <properties>
            <!--
          <property name="javax.persistence.jdbc.url" value="jdbc:sqlserver://localhost:1433;databaseName=ChatDatabase"/>
          <property name="javax.persistence.jdbc.password" value="12345"/>
          <property name="javax.persistence.jdbc.driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
          <property name="javax.persistence.jdbc.user" value="sa"/>
          -->
           <property name="eclipselink.target-database" value="SQLSERVER"/>
           <property name="eclipselink.jdbc.driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
           <property name="eclipselink.jdbc.url" value="jdbc:sqlserver://localhost:1433;databaseName=ChatDatabase"/>
                <!--<property name="eclipselink.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>-->
                <!--<property name="eclipselink.jdbc.url" value="jdbc:derby:chapter10DB;create=true"/>-->
           <property name="eclipselink.jdbc.user" value="sa"/>
           <property name="eclipselink.jdbc.password" value="12345"/>
                <!--property name="eclipselink.ddl-generation" value="update"/-->
                <!--property name="eclipselink.ddl-generation" value="drop-and-create-tables"/-->
           <property name="eclipselink.logging.level" value="INFO"/>
        </properties>
      </persistence-unit>
    </persistence>Thanks in advance
    Edited by: ActiveDean on Dec 24, 2009 4:38 PM

    You need to step through a debugger and find the source of your problem as something is clearly going wrong and causing the transaction to roll back. That is all that message tells us.
    m

Maybe you are looking for

  • Contract & PO Release Strategy

    Hi All, We are in the process of designing the release strategy for contract and PO. I  would like to know whether we can have the different release conditions for contract and different release conditions for PO. For example. The release conditions

  • Photoshop interop bug after installing update

    I recently updated to ACR 5.3.0 (along with a few other updates, I wish I could be more specific, and it would be nice if there were a way to keep track of updates and optionally remove them, like Windows has), and the message about Lightroom being a

  • Is there a way to change the default image save to .jpg rather than.bmp?

    Currently the default save is a .bmp file.  I do not see a way to change this in the <edit> <preferences> area.  Also is there a way to export/save a designated area on a pdf as a .jpg image file rather than the options given: Word, Exel, Powerpoint,

  • Printing document from jsp

    Hi All, I am trying to print a document(For example .doc file) from local system using JSP/Servlet. Please note that I dont want to print the current window and I dont want to use applet also. My requirement is that I have to use only JSP/Servlet or

  • Using the StringTokenizer

    Hi all, I'ld like to use the StringTokenizer to solve the following situatio: I have a dynamic String as: |type_1:value-1|,...,|type_1:value-n|,|type_2:value-1|,...,|type_2:value-n|,...,|type_n:value-1|,...|type_n:value-n|. So My idea is to get for e