Connect JDeveloper with SqlServer
I want to create a model proyect connecting to SqlServer. I download sqljdbc4.jar, create new library and add the jar to the class path. The password is null for this database, i put this credentials:
username: xxxx
password: (empty)
port:1433
hostname:xxxx.xxxx.xxxx.xxxx
databasename:XXXXXXXX
instancename: (empty)
and i got the error: the password can't be null or empty. How i configure to set the password null?
Specify the password used to create a user account in SQL Server database.
Similar Messages
-
Problem connecting JDBC with SQLServer 2005
* While executing the following JDBC code with SQLServer 2005, it throws Exception
* I dont wts wrong in my code, (Note: I have included the sqljdbc.jar in my path)
* Pls let me know the problems in my code
* Thanks, Following is my code and error
CODE:
import java.sql.*;
public class JDBCwithJava {
public void work() {
// Create a variable for the connection string.
String connectionUrl = "jdbc:sqlserver://localhost:1433;" +"databaseName=empdb";
// Declare the JDBC objects.
Connection con = null;
Statement stmt = null;
ResultSet rs = null;
try {
//Load the driver
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
// Establish the connection.
con = DriverManager.getConnection(connectionUrl);
System.out.println("Database Successfully Connected...!");
//Connection Info
DatabaseMetaData dm = con.getMetaData();
System.out.println("Driver Information");
System.out.println("\t Driver Name: "+ dm.getDriverName());
System.out.println("\t Driver Version: "+ dm.getDriverVersion ());
System.out.println("\n Database Information ");
System.out.println("\t Database Name: "+ dm.getDatabaseProductName());
System.out.println("\t Database Version: "+ dm.getDatabaseProductVersion());
// Create and execute an SQL statement that returns some data.
String SQL = "select * from emptable";
stmt = con.createStatement();
rs = stmt.executeQuery(SQL);
// Iterate through the data in the result set and display it.
while (rs.next()) {
System.out.println(rs.getInt(1) + " " + rs.getString(2));
// Handle any errors that may have occurred.
catch (Exception e) {
e.printStackTrace();
finally {
if (rs != null)
try {
rs.close();
catch(Exception e) {
if (stmt != null) try { stmt.close(); } catch(Exception e) {}
if (con != null) try { con.close(); } catch(Exception e) {}
public static void main(String ar[]){
JDBCwithJava call = new JDBCwithJava();
call.work();
OUTPUT with ERROR:
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at JDBCwithJava.work(JDBCwithJava.java:17)
at JDBCwithJava.main(JDBCwithJava.java:58)* Please give me your suggestion about the above program.........JavaImran wrote:
RoyGrini wrote :
Looks like login problems. Username/password or windows authentication logon problem. * I didnt give any UN and Pwd for my database.........And the
at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)gives you a 'connection refused'
Try with providing a SQL username/password. Maybe that will work
- Roy -
Connect Jdeveloper with PostgreSQL
Hi all. I'm looking for someone who knows if it is possible to connect Jdeveloper to PostgreSQL, and if so, how can I do.
Thanks, Caterina.Try looking at this Post:
[b]Connection PostgreSql in JDeveloper[/b]
for more information
Regards,
Lisa -
Error to connection Jdeveloper with database
Hello world ,
i want to make a connection between jdeveloper and database but i got this error message when i do test
Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=169869568)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
i am working on client , and oracle developer is connected with database .
regardsSID is like what is use for developer , it is 100% correctThe error code you are getting (12505) indicates otherwise
http://www.error-code.org.uk/view.asp?e=ORACLE-TNS-12505
Perhaps you are pointing to the wrong host/IP address
John -
Connect jdeveloper with sql server 2005
hello, I don't speak english very well, how I do to connect sql server 2005 with jdeveloper using create connections without username and password, using windows autentication. I downloaded driver jdbc from microsoft pages, when I create the connections and click test connections, the conecctions failed because I don't have username and pass in sql server. Thanks and sorry for my english. Regards
When the SQL Server is installed a password is specified for the 'sa' user, or a new SQL Server user may also be created.
Please refer
http://www.devx.com/dbzone/Article/33681 -
Connection jdeveloper with database
I make the following: right click on database, new connection, I put the connection name (connaction type is "oracle (jdbc)"), username hr, password hr, deploy password is selected and now if I let the default option :driver - thin, hostname -localhost, jdbc port -1521, sid - orcl, I receive the message: listener refused the connection with the following error:ora12505, tns: ...... Can someone tell me step by step how can I connect?
THIS IS WHAT I HAVE IN TNSNAMES.ORA
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = user)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = ORCL)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
AND IN LISTENER.ORA I HAVE THE FOLLOWING:
"SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = user)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
I COPIED ALL FROM THE BOTH FILES BECAUSE I DO NOT KNOW WHAT IS IMPORTANT. -
Connecting JDeveloper to the DB
Hi All,
I have just installed JDeveloper for NT on my Windows '98. The problem is I can't create connections to the Oracle 7 personal edition I have installed.
What do I need to do, or what am I not doing correct?
Thanks to All.hi friend
i don't think u can connect JDeveloper with oracle 7.Even with oracle8 it
is having problem.i presently connected with oracle 8i
try out -
Connect 7.3.4 with sqlserver
I need to connect oracle database 7.3.4 with sqlserver to make select, insert or updates. Somebody can help me?
You can try the Heterogeneous Connectivity forum, but I think with 7.3.4 you are going to be out of luck depending of the version of SQL Server.
You try going from SQL Server to Oracle using an Oracle ODBC connection. -
Connect interface with XML File in jdeveloper
Hello;
i want to design a webservice that take an employee ID , and return all employee's data (like his name ,departement, phone,email....)
i want to make interface and connect it with XML file wich has all employees data
how can i connect the interface ( input text box and output button) with XML file (taking the Id and searching inside the file and getting the data out in table as output)
i want to deploy it to get the WSDL file and URL to deploy it at application server to use it in webcenter>>>up 2 find an answer
i want the right way to do it? -
Problem while working with sqlserver
hello
i am a user of jdeveloper using swing/jclient in my application.
i am using sqlserver with my jdeveloper. i had followed the path necessary for foreign database.
i had made a connection with sqlserver . connection is created.
but when i test my applicationmodule . i am able to insert the data and save it.but when i tried to delete or update any record it is throwing an error:
(oracle.jbo.DMLException) JBO-26080: Error while selecting entity for Trial
----- LEVEL 1: DETAIL 0 -----
(java.sql.SQLException) [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]FOR UPDATE cannot be specified on a READ ONLY cursor.
details:
oracle.jbo.DMLException: JBO-26080: Error while selecting entity for Trial
at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:653)
at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:4480)
at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:3033)
at oracle.jbo.server.ViewRowImpl.lockEntities(ViewRowImpl.java:1506)
at oracle.jbo.server.ViewRowImpl.doRemove(ViewRowImpl.java:1631)
at oracle.jbo.server.ViewRowImpl.remove(ViewRowImpl.java:1683)
at oracle.jbo.server.QueryCollection.doRemove(QueryCollection.java:1176)
at oracle.jbo.server.QueryCollection.remove(QueryCollection.java:1195)
at oracle.jbo.server.ViewRowSetImpl.removeRowAt(ViewRowSetImpl.java:1423)
at oracle.jbo.server.ViewRowSetIteratorImpl.doRemoveCurrentRow(ViewRowSetIteratorImpl.java:2044)
at oracle.jbo.server.ViewRowSetIteratorImpl.removeCurrentRow(ViewRowSetIteratorImpl.java:2065)
at oracle.jbo.server.ViewRowSetImpl.removeCurrentRow(ViewRowSetImpl.java:2112)
at oracle.jbo.server.ViewObjectImpl.removeCurrentRow(ViewObjectImpl.java:5477)
at oracle.jbo.jbotester.NavBar$rsDelete.doAction(NavBar.java:400)
at oracle.jbo.jbotester.AbstractJboAction.actionPerformed(AbstractJboAction.java:60)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227)
at java.awt.Component.processMouseEvent(Component.java:5134)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
## Detail 0 ##
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]FOR UPDATE cannot be specified on a READ ONLY cursor.
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.BasePreparedStatement.executeQuery(Unknown Source)
at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:530)
at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:4480)
at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:3033)
at oracle.jbo.server.ViewRowImpl.lockEntities(ViewRowImpl.java:1506)
at oracle.jbo.server.ViewRowImpl.doRemove(ViewRowImpl.java:1631)
at oracle.jbo.server.ViewRowImpl.remove(ViewRowImpl.java:1683)
at oracle.jbo.server.QueryCollection.doRemove(QueryCollection.java:1176)
at oracle.jbo.server.QueryCollection.remove(QueryCollection.java:1195)
at oracle.jbo.server.ViewRowSetImpl.removeRowAt(ViewRowSetImpl.java:1423)
at oracle.jbo.server.ViewRowSetIteratorImpl.doRemoveCurrentRow(ViewRowSetIteratorImpl.java:2044)
at oracle.jbo.server.ViewRowSetIteratorImpl.removeCurrentRow(ViewRowSetIteratorImpl.java:2065)
at oracle.jbo.server.ViewRowSetImpl.removeCurrentRow(ViewRowSetImpl.java:2112)
at oracle.jbo.server.ViewObjectImpl.removeCurrentRow(ViewObjectImpl.java:5477)
at oracle.jbo.jbotester.NavBar$rsDelete.doAction(NavBar.java:400)
at oracle.jbo.jbotester.AbstractJboAction.actionPerformed(AbstractJboAction.java:60)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227)
at java.awt.Component.processMouseEvent(Component.java:5134)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
----- LEVEL 1: DETAIL 0 -----
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]FOR UPDATE cannot be specified on a READ ONLY cursor.
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.BasePreparedStatement.executeQuery(Unknown Source)
at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:530)
at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:4480)
at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:3033)
at oracle.jbo.server.ViewRowImpl.lockEntities(ViewRowImpl.java:1506)
at oracle.jbo.server.ViewRowImpl.doRemove(ViewRowImpl.java:1631)
at oracle.jbo.server.ViewRowImpl.remove(ViewRowImpl.java:1683)
at oracle.jbo.server.QueryCollection.doRemove(QueryCollection.java:1176)
at oracle.jbo.server.QueryCollection.remove(QueryCollection.java:1195)
at oracle.jbo.server.ViewRowSetImpl.removeRowAt(ViewRowSetImpl.java:1423)
at oracle.jbo.server.ViewRowSetIteratorImpl.doRemoveCurrentRow(ViewRowSetIteratorImpl.java:2044)
at oracle.jbo.server.ViewRowSetIteratorImpl.removeCurrentRow(ViewRowSetIteratorImpl.java:2065)
at oracle.jbo.server.ViewRowSetImpl.removeCurrentRow(ViewRowSetImpl.java:2112)
at oracle.jbo.server.ViewObjectImpl.removeCurrentRow(ViewObjectImpl.java:5477)
at oracle.jbo.jbotester.NavBar$rsDelete.doAction(NavBar.java:400)
at oracle.jbo.jbotester.AbstractJboAction.actionPerformed(AbstractJboAction.java:60)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227)
at java.awt.Component.processMouseEvent(Component.java:5134)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
Please do help if you can.
Thanks in Advance
Aparnathanks shay
but i had gone through all the steps. i had also set the oracle.jbo.locking mode to optimistic
but then also i am getting the same error while updating and deleting.
Please do help me if you ca.
thanks
Aparna -
Connection pooling with SQL Server 2008 and Tomcat 6.0
Hello Everybody,
I'm creating a web application using struts 2.0 , tomcat 6.0 and sql server 2008.
Everything works fine but i'm unable to create connection pooling with sql server 2008.Please help me to solve this issue.
Code for this is as foolows:
in my META-INF/context.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/spas" docBase="spas"
debug="5" reloadable="true" crossContext="true">
<Resource
name="jdbc/spas_new"
auth="Container"
type="javax.sql.DataSource"
maxActive="20"
maxIdle="10"
maxWait="-1"
user="spas_user"
password="spas123"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://HGL-0053\dbo:1433;databaseName=spas_new;responseBuffering=adaptive;"/>
</Context>
in my web.xml
<resource-ref>
<description>SQL Server Datasource</description>
<res-ref-name>jdbc/spas_new</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
and in my ConnectionThread.java file i've used:
Context ctx = new InitialContext();
if(ctx == null )
throw new Exception("Sorry! No Context Exception");
DataSource ds = (DataSource)ctx.lookup("java:/comp/env/jdbc/spas_new");
System.out.println("ds:"+ds);
conn=ds.getConnection();
Following is the exception:
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Login failed for user ''.)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
at login.V_SPAS_ConnectionThread.getConnection(V_SPAS_ConnectionThread.java:87)
at org.apache.jsp.login.v_005fspas_005flogin_005fpage_jsp._jspService(v_005fspas_005flogin_005fpage_jsp.java:95)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1023)
at org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:345)
at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:572)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:221)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:694)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:665)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:54)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at login.V_SPAS_SecurityCheckFilter.doFilter(V_SPAS_SecurityCheckFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user ''.Hi Karthikeyan,
This is not the issue at all. I can open the management studio by the same login id and password and also i can make the database jdbc connection from plain java file.
It does not give me any problem by them.
I'm unable to find the actual problem. May be i'm missing something in connection pooling.
Please help.
Regards
Mina -
Connecting to a SQLServer 2000 DataSource
Hi all,
I'm trying to connect to a SQLServer datasource using the following code:
String dsName = "java:comp/env/jdbc/" + user.getRole();
DataSource ds = (DataSource) ctx.lookup(dsName);The dsName ends up as: java:comp/env/jdbc/dos-issues-riinput.
But this fails with a NamingException.
However, if I do this code:
String dsName2 = "/jdbc/" + user.getRole();
DataSource ds = (DataSource) ctx.lookup(dsName);The dsName comes out as jdbc/dos-issues-riinput and it works with a "Deprecated" warning.
My question is what is the correct way to use a datasource? In all the example I have seen they use the java:comp/env prefix but this doesn't seem to work!
Thanks for any help offered,
IlluYes, the datasources exist for each role.
It seems odd to me too, but when the datasource name is:
java:comp/env/jdbc/dos-issues-riinputIt fails, and when it is:
jdbc/dos-issues-riinputIt works, albeit with a deprecated warning... It seems to me that the prefix is the only thing that is different.
Here is an example of one of the datasource references in my deployment descriptor, should this have the prefix "java:comp/env/" also, perhaps?
<resource-ref>
<res-ref-name>jdbc/dos-issues-cpview</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Unshareable</res-sharing-scope>
</resource-ref>The jndi names in the App Server are also listed without the prefix as, for example: jdbc/dos-issues-riinput
Illu -
Connection JDeveloper to Oracle 8i
How to make a connection in Jdeveloper 3.0 to Oracle Personal 8i local Database on a Windows 98 Machine.
Oracle Database 8.1.5 and Jdeveloper 3.0 are in the same computer Win/98.
Which JDBC Driver and connection method must be used?
I need a complete explanation, please.
Thanks.Hello OTN Team
I just installed Personal Oracle 8i for Windows 98 with the typical
instalation option. I want to show a software prototipe and so I need to know
how I can connect many develop tools running in the same PC. After install
Personal Oracle 8i I can start a session in SQLPlus with many users (internal,
scott, system, etc), but I can't connect to the database with other programs
like Forms 4.5, procedure builder or JDeveloper 3.0, running in the same PC.
Perhaps to connect Forms 4.5 with Personal Oracle 8i and to connect JDeveloper
3.0 between to diferent themes (Yes, I Know JDeveloper 3.0 is designed for
Windows NT). Wherever, I really need to know the way to get the connection.
Remember, Personal Oracle 8i and the Development tools are running in the same
PC.
Thanks for your help... !!
null -
Issue with configuring Hyperion HUB 7.1.2 with SQLSERVER 2005
Hello Experts,
One of my customer has an issue with configuring Hyperion HUB 7.1.2 with SQLSERVER 2005.
"We are trying to configure the SQL server 2005 database with Hyperion hub and we are unable to get the cofiguration completed. We suspect the driver class (hyperion.jdbc.sqlserver.SQLServerDriver) used in the domain.xml (path \Hyperion\HyperionHub\7.2.1\deployments\Tomcat\4.1.30\) is not helping to connect with sql server 2005. We would appreciate if you can provide new driver class which we can included while deploying the app under the web server."
Please suggest. Thanks in advance
Regards,
SonuHi
Please redeploy only the Web Server under shared service. It has to be redeployed once EPMA and others are configured.
Thanks
Rupak
Mantra to Win | WinMantras.com | http://hyperion.winmantras.com -
Hello everybody,
I have created a java program in JBuilder9 and i have connected it with Access 2003.
I want to connect the program with SQLServer 2000.
How can i do it?
Thanks in advance!You can either find a JDBC driver to directly connect to SQL Server or set up a DSN to SQL Server Database through ODBC and use the JDBC-ODBC bridge As you may have done when connecting to Access Database
Maybe you are looking for
-
How to fix problem of bypassing the submit button validation by pressing the space bar in the required fields. This occurs in the internet explorer and chrome browse but not in foxfire
-
Menu 9 in 7960 doesn't appear...
I'm sorry but in my ip phone 7960 menu 9 doesn't appear...only 1,2,3,4,5,6...why???
-
hey anyone knows hot to change my credit card details in my apple account? couldn't find it...
-
JComboBox.removeAllItems event in 1.4.2
I've just installed 1.4.2 and noticed that JComboBox.removeAllItems now fires an ActionEvent which it didn't do in 1.4.1. This was a little inconvenient for me as I was using this event to update another field when a new selection was made in the com
-
HOW do I get my downloaded podcast to sync from my PC to my Iphone? It is setup so i dont know why it wont transfer