Skip to main content

java.sql.SQLException: Error in allocating a connection

22 replies [Last post]
shruthifcg
Offline
Joined: 2007-05-01

hi

i created enterprise application using netbeandIDE 5.5.I am using Sun java system aplication server.I crated enity bean using sql server database.When i tried to deploy this project i am getting folowing error.

Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : com.microsoft.jdbc.sqlserver.SQLServerDataSourceError Code: 0
C:\TaskApp\nbproject\build-impl.xml:183: Deployment error:

can anybody plese help me in resolving this error?please help me where i went error.

regards
shruthi

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
shruthifcg
Offline
Joined: 2007-05-01

Thanks a lotttttttttttttttttttttttttttttttttttttt :-) for your help

i am able to deploy.Actaully i did some changes in netbeans IDE.I am able to deploy.

Once again thanks a lot for help(really from last days i am troubling you.sorry for that)

regards
shruthi

shruthifcg
Offline
Joined: 2007-05-01

Nooooooooooooooooooo i didnt expected this result(even after ping is succeeded)...:-(

Still i am getting same error when i tried to deply the project.

i dont understand what is happening here......

What to do jagdish?

shruthifcg
Offline
Joined: 2007-05-01

hi

Now i am getting ping suceeded.

Few proprties were missing like servername,port number....

i added those properties...now ping is succeeded.

i hope now application will work fine...

thanks a lot for your help

deepak1234
Offline
Joined: 2007-05-04

Hi Shruti,

I am also having the problem as you were having.

Also I am not able to ping from admin console. getting the same error.

Can you please help me of how you solved your problem.

Thanx
Deepak

jr158900
Offline
Joined: 2005-04-13
deepak1234
Offline
Joined: 2007-05-04

Hi,

Thanx a million...I able to get through the connction.

But I have Another problem. I am using netbeans IDE 5.5 and Java EE 5.

I have SQL Server 2000 datase. I have created my Entity Class from Database.

I also have created Session for this enetity class.

Now in my UsersFacade class I have this function.

[b] public java.util.List findAll() {
return em.createQuery("select object(o) from Device as o").getResultList();
}[/b]

I get this error when I run the function. This is the error I get...
[b]
Caused by: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'Users'.Error Code: 208
Call:SELECT MSISDN, Password, address, FirstName, BrokerAcc, age, LastName, DeviceID FROM Users
Query:ReportQuery(commerce.Users)
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:303)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:551)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
at oracle.toplink.essentials.threetier.ServerSession.executeCall(ServerSession.java:465)
at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:213)
at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:199)
at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:270)
at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:600)
at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2115)
at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllReportQueryRows(ExpressionQueryMechanism.java:2081)
at oracle.toplink.essentials.queryframework.ReportQuery.executeDatabaseQuery(ReportQuery.java:774)
at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:677)
at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:731)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2218)
at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:937)
at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:346)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.getResultList(EJBQueryImpl.java:447)
at commerce.UsersFacade.findAll(UsersFacade.java:49)
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.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1050)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:165)
at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2766)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3847)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:184)
... 30 more
Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'Users'.
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.TDSExecuteRequest.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.executeQueryInternal(Unknown Source)
at com.microsoft.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:711)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:486)
... 57 more[/b]

Marina Vatkina

Can it be that you have a ToOne relationship to commerce.Users that would be
fetched eagerly by default or a ToMany relationship that you marked as an EAGER
fetch?

thanks,
-marina

glassfish@javadesktop.org wrote:
> Hi,
>
> Thanx a million...I able to get through the connction.
>
> But I have Another problem. I am using netbeans IDE 5.5 and Java EE 5.
>
> I have SQL Server 2000 datase. I have created my Entity Class from Database.
>
> I also have created Session for this enetity class.
>
> Now in my UsersFacade class I have this function.
>
> [b] public java.util.List findAll() {
> return em.createQuery("select object(o) from Device as o").getResultList();
> }[/b]
>
> I get this error when I run the function. This is the error I get...
> [b]
> Caused by: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.DatabaseException
> Internal Exception: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'Users'.Error Code: 208
> Call:SELECT MSISDN, Password, address, FirstName, BrokerAcc, age, LastName, DeviceID FROM Users
> Query:ReportQuery(commerce.Users)
> at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:303)
> at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:551)
> at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
> at oracle.toplink.essentials.threetier.ServerSession.executeCall(ServerSession.java:465)
> at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:213)
> at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:199)
> at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:270)
> at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:600)
> at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2115)
> at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllReportQueryRows(ExpressionQueryMechanism.java:2081)
> at oracle.toplink.essentials.queryframework.ReportQuery.executeDatabaseQuery(ReportQuery.java:774)
> at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
> at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:677)
> at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:731)
> at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2218)
> at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:937)
> at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
> at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:346)
> at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.getResultList(EJBQueryImpl.java:447)
> at commerce.UsersFacade.findAll(UsersFacade.java:49)
> 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.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1050)
> at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:165)
> at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2766)
> at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3847)
> at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:184)
> ... 30 more
> Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'Users'.
> 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.TDSExecuteRequest.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.executeQueryInternal(Unknown Source)
> at com.microsoft.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source)
> at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:711)
> at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:486)
> ... 57 more[/b]
> [Message sent by forum member 'deepak1234' (deepak1234)]
>
> http://forums.java.net/jive/thread.jspa?messageID=215699
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

shruthifcg
Offline
Joined: 2007-05-01

hi jagadish.

Previously i got error in allocating connection.you helped me in resolving that.

But this time situation is different ..but the error is same.I using tomcat web server and sql serer2000 database.But i am not able to establish a connection
Can you please help me resolving this.

I am getting following error...

javax.servlet.ServletException: Cannot load JDBC driver class 'com.microsoft.jdbcx.sqlserver.SQLServerDataSource'
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.database_jsp._jspService(org.apache.jsp.database_jsp:140)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.microsoft.jdbcx.sqlserver.SQLServerDataSource'
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:766)
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
org.apache.jsp.database_jsp._jspService(org.apache.jsp.database_jsp:114)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

jr158900
Offline
Joined: 2005-04-13

I guess, jdbc driver is not available.

http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
You may have to copy the driver to $CATALINA_HOME/common/lib as specified in the above URL.

If it doesn't work, you can post it to apache forums.
http://jakarta.apache.org/commons/dbcp/mail-lists.html

shruthifcg
Offline
Joined: 2007-05-01

thanks jagdish.
That problem is resolved.One jar file naming-factory-dbcp.jar was missing thats why i was getting that error.

But now i am getting different error for this code(basically i am writng databas connection code)

<%
Connection con;
Statement st;

Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/cust");

con = ds.getConnection();
st=con.createStatement();
ResultSet rs=st.executeQuery("select * from customer");
while(rs.next())
{
out.println(rs.getString("custName"));
}

%>

the error i am getting is,

javax.servlet.ServletException: Cannot load JDBC driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.database_jsp._jspService(org.apache.jsp.database_jsp:142)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:766)
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
org.apache.jsp.database_jsp._jspService(org.apache.jsp.database_jsp:116)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

can u please help me in resolving this?

regards
shruthi

jr158900
Offline
Joined: 2005-04-13

Hi Shruthi,

microsoft jdbc-driver is not available for application server. You can either specify it in appserver classpath or copy the driver to AS_INSTALL_DIR/domains//lib/ext & restart appserver. This should solve the problem. If not, please post your con. pool configuration and driver jar file name.

For more information :
SJSAS Administration Guide > JDBC Resources > Configurations for specific drivers > Microsoft SQL Server JDBC Driver

Thanks,
-Jagadish

shruthifcg
Offline
Joined: 2007-05-01

thanks jagadish for responding.

But still its not working.i copied all the three jar files into aap_inst/domains/domain1/lib/ext.....

these are the three jar files i copied
msbase.jar
msutil.jar
mssqlserver.jar

regards
shruthi

jr158900
Offline
Joined: 2005-04-13

You have specified, com.microsoft.jdbc.sqlserver.SQLServerDataSource.
Actual class name in the documentation is "com.microsoft.sqlserver.jdbc.SQLServerDataSource"
http://docs.sun.com/app/docs/doc/819-3658/6n5s5nklk?a=view#gcfoy

Also, are these jar files, mssqlserver.jar or smsqlserver.jar ?

Please post your con.pool configuration.

Thanks,
-Jagadish

shruthifcg
Offline
Joined: 2007-05-01

well that datasource classname is reverse.But i am not going to specify the datsource name netbeans IDE takes it automatically(i just specify the dqlserver driver classname)

one more thing mssqlserver.jar file i copied.

sorry to say this i am not getting what connection pool configuartion file.I am very new to ejb3.0.so i am not able to understand what that file

jr158900
Offline
Joined: 2005-04-13

1) you can find con.pool configuration related to this ms-sql datasource in application server's domain.xml
AS_INSTAL_DIR/domains//config/domain.xml.

eg:

2) Does your persistence.xml (EJB) have
or specified?

shruthifcg
Offline
Joined: 2007-05-01

hi

1)persistence.xml (EJB) is specified.

2)this is the content of domain.xml








"JBI Framework LifecycleModule"



















































































-client
-Djava.endorsed.dirs=${com.sun.aas.installRoot}/lib/endorsed
-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy
-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf
-Dsun.rmi.dgc.server.gcInterval=3600000
-Dsun.rmi.dgc.client.gcInterval=3600000
-Xmx512m
-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks
-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks
-Djava.ext.dirs=${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}${com.sun.aas.instanceRoot}/lib/ext${path.separator}${com.sun.aas.derbyRoot}/lib
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-XX:NewRatio=2
-Dhttp.proxyHost=192.168.1.198
-Dhttp.proxyPort=3128
-Dhttps.proxyHost=192.168.1.198
-Dhttps.proxyPort=3128
-Dhttp.nonProxyHosts=<local>*|localhost|127.0.0.1|wb1-329|10.250.6.119
-XX:MaxPermSize=128m





















jr158900
Offline
Joined: 2005-04-13

con.pool config looks fine. I hope you have restarted app.server after changing the con.pool settings/ copying the driver files.
What exception do you get now ? (exceptions will be logged in domains/domain1/logs/server.log

You can also try "ping" utility, to check whether the con. settings are correct.
admin console (http://appserver-host-name:4848), resources > jdbc > connection pool > Your con pool > PING. If ping fails, you will see exceptions in server.log

shruthifcg
Offline
Joined: 2007-05-01

hi

Thanks for your help.

But i am still getting same error.
well i restarted the application server after coping jar files into lib.
I tried to test the con.pool setting using Ping utility.But i am getting folllowing error:
Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Class name is wrong or classpath is not set for : com.microsoft.sqlserver.jdbc.SQLServerDataSource

can you plzzzzzzzzzzzzzzzzzzzzz tell me what changes i need to do in settings..

reagrds
shruthi

jr158900
Offline
Joined: 2005-04-13

I think you are trying to connect to MS SQLServer 2000. The classname I have specified is for SQLServer 2005.

Correct class name is "com.microsoft.jdbcx.sqlserver.SQLServerDataSource"

shruthifcg
Offline
Joined: 2007-05-01

hi

as u have mentioned,i have changed the datasource class name.

But i am getting new error,
Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Connection could not be allocated because: [Microsoft][SQLServer 2000 Driver for JDBC]JTA is not support when selectMethod=direct. Switch to selectMethod=cursor.

can u plz figure it out,again where i went wrong,,,,,is it the jar files is wrong or what?

jr158900
Offline
Joined: 2005-04-13

You will have to specify the properties needed for connection establishment.

http://www.microsoft.com/downloads/details.aspx?familyid=9f1874b6-f8e1-4...
, mssqlserver.tar has the manual.
Check the msjdbcref.pdf > Chapter 3> Connection String properties
for the list of properties
eg: user, password, selectMethod, serverName, wsid etc.,

set appropriate values for these properties.

shruthifcg
Offline
Joined: 2007-05-01

Nooooooooooooooooooo i didnt expected this result...:-(

Still i am getting same error when i tried to deply the project.

i dont understand what is happening here......

What to do jagdish?