Jdbc -ms sql server
I have ms sql server instaled on my comp, and i'm using a system account(and for authentification i have windows only chosen), but cannot connect to it using JDBC. My code is:
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
con = DriverManager.getConnection("jdbc:microsoft:sqlserver:local:1433", uName, pass);
Initially I used as server name, the server name from the SQL Service manager, but it doens't work with that or "local" either. Also I used as an username and password my windows account but no matter what I fill in there I always get the error:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Unable to connect. Invalid URL.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at DBConnection.<init>(DBConnection.java:21)
at DBConnectionTester.main(DBConnectionTester.jav
a:4)
I'm using blue j for compiling and running my programs, and sometimes i get an error from blue j too saying "Internal Blue J error: unexpected exception in remote VM java.lang.NullPointerException"
So if anyone knows how to solve my problem, please help!
me1357, change the authentication mode to mixedand
while you're at it get a better driver.The better driver would be... jTds (???)Yes. The MS driver is buggy and slow. I recommend the http://jtds.sourceforge.net/ one based on usage. The MS developers who work on the MS driver have been talking to the Jtds developers to figure out how they (the MS developers) should better implement their driver (the MS one). That about sums it up.
Although I am glad they realize when they are in over their heads and need some help.
And now for the always popular disclaimer.
I am not associated in any way with Jtds other than as a user of the driver I did donate money to the project (which I believe will pay for certification one day but Alin can keep it for all I care) because I am grateful that somebody took the time to write a solid driver.
Similar Messages
-
Hi,
I am trying to connect to a SQL server database by giving table name in (SPVC) database as spvc.dbo.tablename.. If i want to access another database (SPVC_D), how can i do it without changing my java code?? Can i be able to add the database name to the connection string and i can remove the hard coding (spvc.dbo.) from my java code?? How shall i be able to do that..
Please let me know.. I am very new with JDBC with SQL server..
Thanks
Praveen PadalaIn the MS SQL Server that I use, the following syntax
spvc.dbo.tablename
Breaks done as follows...
<database>.<user>.<tablename>
However connections are always to a database. Thus when one uses the above syntax it basically runs 'in' the one database and accesses another.
Depending on various attributes of the tables, if and only if, a table called 'tablename' exists in a database called 'spvc_d' then if you connect to 'spvc_d' then you can access 'tablename' just by using 'tablename'.
So if that is what you are doing you will not have a problem. -
Problem in Creating a JDBC System - SQL Server
Hi All
I failed in creating a JDBC System(SQL Server). I am using SAP EP 7.0 SP 9. I tried to create the JDBC system with the following properties:
I am listing them Category wise:
Connection Properties:
1. Connection Timeout: 300
2. Connection URL: jdbc:sap.sqlserver://<server name> : <port name>; DatabaseName=master
3. Driver Class Name: com.sap.portals.jdbc.sqlserver.SQLServerDriver
4. Validate Connection: Yes
UserManagement Properties:
5. User Mapping Type: admin;user
Please help me out in making this work. And let me know if any changes to incorporated.
Regards,
Vijay.Hi vijay,
I have tried this thing sometime back. But when i create a JDBC system, I never give the <b>Connection Timeout</b> and change the<b> Validate Connection</b> from No to Yes. I just give the <b>Connection URL</b> and the <b>Driver Class Name</b> in the Connection Properties dropdown.
Try making these changes and check whether the user mapping is done correctly. Also check whether the Connection URL and the Driver Class Name are correct or not. Have a look at the following link:
<a href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/VC/JDBC%2bConnection%2bSetup">https://www.sdn.sap.com/irj/sdn/wiki?path=/display/VC/JDBC%2bConnection%2bSetup</a>
Let me know if this works.
Bye
Ankur
Reward points if it helps!! -
How to establish a trusted connection with JDBC for SQL SERVER 2000
Hi!I am using jdk 1.4 and eclipse 3.3.
I create a servlet in eclipse with in-build tomcat.
When I run it ,it was working perfectlly has it was suppose to work.
In this servlet I connect to a sql 2000 database using jdbc-odbc bridge driver.
But when I tried to deploy the servlet on tomcat 5.5 manully on the same machine ,it gave me error saying
[Microsoft][SQLServer JDBC Driver][SQLServer]Login failed
for user 'sa'
I searched around some post and found that ok ,I need trusted connection
But I have 2 Questions
1). Why was in eclipse I was able to connect to the SQL server and why not in the servlet which I deployed manully on tomcat.
2). How do I create a trusted connection with JDBC for SQL server 2000
Thnaks for your help in advance.Hi! duffymo ,QussayNajjar ,dvohra09 .
Thank for help.
The ideas are really great.
I am trying generate reports for my company.
When I used eclipse the code worked perfectly.
below is code which I used
out.println("Calling For Class Name<br>");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
out.println("Calling For Class Name success Now calling database <br>");
1). jdbcConnection = DriverManager.getConnection("jdbc:odbc:SQLJasper");
2). jdbcConnection = DriverManager.getConnection("jdbc:odbc:Driver={SQL Server};Server=ServerName;Database=tempdb");
3). jdbcConnection = DriverManager.getConnection("jdbc:odbc:Driver={SQL Server};Server=ServerName;Database=tempdb","UID=UserName","Password=Password");
out.println("connecting to database success<br>");
I had tried to connect the database using this three way.
In 1st I tried using DSN name .
Next 2 self explainer for expert like you.
I used to 2nd variant to connect in eclipse and it worked fine.
I not an expert in java ,I just doing some research on jasperReport.
My best guest is that eclipse is using some library files of which I have no clue.
Thank's for your help,I appretiate it.
Once again thank a billion.
Sorry for the messy righting. -
JDBC MS SQL Server driver catch SQLException on Update statement
Hi,
We change the driver for the BEA WebLogic Type 4 JDBC MS SQL Server driver
driver=weblogic.jdbc.sqlserver.SQLServerDriver
url=jdbc:bea:sqlserver://db_name:port_number
since we use this driver we got an error when the application try to update a field date type with a NULL value.
Before, we use this driver and we didn't have this error
driver=com.inet.tds.TdsDriver
url=jdbc:inetdae:ammtl1sqls01:1961
The stack is:
Failed to update - id [updateItemBranch] - parameterObject [xxx.domain.store.Item@b0237c].
Cause:com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/gildan/ecrm/persistence/sql/Item.xml.
--- The error occurred while applying a parameter map.
--- Check the updateItemBranch-InlineParameterMap.
--- Check the parameter mapping for the 'availableDate' property.
--- Cause: java.sql.SQLException: [BEA][SQLServer JDBC Driver]The specified SQL type is not supported by this driver
Caused by: java.sql.SQLException: [BEA][SQLServer JDBC Driver]The specified SQL type is not supported by this driverCarol Villeneuve wrote:
Hi,
We change the driver for the BEA WebLogic Type 4 JDBC MS SQL Server driver
driver=weblogic.jdbc.sqlserver.SQLServerDriver
url=jdbc:bea:sqlserver://db_name:port_number
since we use this driver we got an error when the application try to update a field date type with a NULL value.
Before, we use this driver and we didn't have this error
driver=com.inet.tds.TdsDriver
url=jdbc:inetdae:ammtl1sqls01:1961
The stack is:
Failed to update - id [updateItemBranch] - parameterObject [xxx.domain.store.Item@b0237c].
Cause:com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/gildan/ecrm/persistence/sql/Item.xml.
--- The error occurred while applying a parameter map.
--- Check the updateItemBranch-InlineParameterMap.
--- Check the parameter mapping for the 'availableDate' property.
--- Cause: java.sql.SQLException: [BEA][SQLServer JDBC Driver]The specified SQL type is not supported by this driver
Caused by: java.sql.SQLException: [BEA][SQLServer JDBC Driver]The specified SQL type is not supported by this driverHi. You should do two things:
1 - Contact BEA support for the very latest versions of the weblogic drivers.
2 - show us the actual jdbc code being called, and the full original stacktrace
of the SQLException.
Joe -
Help - JDBC MS SQL Server and Cursors Error
Hello,
Please help. I am using weblogic 8.1 and MS SQL Server 2000. Using JDBC. I have am calling a stored procedure which outputs a CURSOR. I haveing problems specifying the right java.sql.Type for this. I tried java.sql.Type.OTHER but it fails. The code is as follows
Connection conn = null;
CallableStatement stmt = null;
String sqlProc = "{ call GetDocumentDetails(?,?) }";
try {
conn = this.getConnection();
stmt = conn.prepareCall(sqlProc);
stmt.setInt(1, docId);
stmt.registerOutParameter(2,Types.OTHER);
stmt.execute();
ResultSet rs = (ResultSet) stmt.getObject(2);
while(rs.next()) {
The exception that I get is
java.sql.SQLException: [BEA][SQLServer JDBC Driver]The specified SQL type is not supported by this driver.
at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
PLEASE HELP.
Thanks in advance
GMhi llturro,
Thanks for answering my question. I have tried out what you suggested, but I still can't fix my problem. The following are the messages that display when I try to run my servlet. It seems that the DataSource, Connection and Statement are ok, however when it comes to the ResultSet the error message appear. What's wrong with my ResultSet coding ?
ResultSet rs = stat.executeQuery("SELECT ISBN FROM BOOKSINFO WHERE ISBN='"+primarykey+"'");
setEntityContext Method
Find by primary key
DataSource OK
Connection OK
Primary Key = 013-00-675721-9
Statement OK
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: Unknown Exception/Error thrown by EJB method.; nested exception is:
java.lang.NullPointerException
java.rmi.RemoteException: Unknown Exception/Error thrown by EJB method.; nested exception is:
java.lang.NullPointerException
java.lang.NullPointerException
<<no stack trace available>> -
JDBC - MS SQL Server 2000 Driver
Do you need to have J2EE to run the MS downloaded SQL Server 2000 JDBC Driver? Currently have the J2SE installed with JDK 1.31_01 installed and keep getting errors where doesn't recognize a number of class objects. -- Thanks
Do you need to have J2EE to run the MS downloaded SQL
Server 2000 JDBC Driver? Currently have the J2SE
installed with JDK 1.31_01 installed and keep getting
errors where doesn't recognize a number of class
objects. -- ThanksI did not have any problems on windows 2000 with SQL 7, J2SE 1.4 Beta 3. BUT You will have to re-jar the files since there is a corrupted jar file in their driver. This corruption is not fatal, but causes exceptions to be loggued.
Did you load the driver with Class.forName ? -
JDBC MS SQL Server ResultSet Problem
I'm writing a web-app using apache tomcat. I'm using MS SQL Server 2000 as my database. I am having no problem connecting to the database, but whenever I query the database, the ResultSet that is returned never has anything in it. I've tried even the simplest select queries and i'm still getting no results. I thought it might be a problem with the JDBC Driver I've been using, but I'm using the exact same driver for SQL Squirrel Client to connect, and Squirrel Client is returning results just fine from the database. Is there something that I've forgotten in my servlet code? Here's something like what I've been using:
Connection con = DriverManager.getConnection(host, userName, password);
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from some_table");If the select statement returns rows then the loop will execute... Put in some debugging output just before the while() loop, inside the loop, and immediately after the loop.
Are you ignoring exceptions?
Google for "jdbc tutorial". Take the simplest example program there that selects something. Run it as a command line program. Does it work? (Answer: yes.) Now what is different between that example program and your code? -
Hi,
I'm developing Java procedures in Oracle 8.1.7. I've already loaded the
Sybase JDBC driver successfully with loadjava and the Oracle procedures that
access Sybase are working correctly.
I've tried doing the same with Microsoft SQL Server 2000 JDBC, but it's not
working. The jar files were placed on the classpath and the problem remains.
Has anyone loaded the files msbase.jar, msutil.jar and mssqlserver.jar
successfully in Oracle 8.1.7 with the loadjava command? Any ideas will be
appreciated.
Thanks in advance.
Regards,
Vanderlei FonsecaThe only way this will work is if the vendor driver is a type-4 (100% java, no native methods). There is no external 'classpath' that the server uses for Java procedures. Everything has to be loaded with loadjava. I do not know if the SQL Server JDBC drivers are type-1, 2, 3 or 4. You need to check that with MS.
-
JDBC - MS SQL Server 2005 with multible instances
I want to get data from a Microsoft SQL Server via JDBC. We have such a scenario and till now it works fine. Now we have a second instance at the sql server and we want to connect to this instance. I've found the following MSD article:
http://msdn2.microsoft.com/en-us/library/ms378428.aspx
<b>SQL Server 2000 and SQL Server 2005 allow for the installation of multiple database instances per server. Each instance is identified by a specific name. To connect to a named instance of SQL Server, you can either specify the port number of the named instance (preferred), or you can specify the instance name as a JDBC URL property or a datasource property. If no instance name or port number property is specified, a connection to the default instance is created. See the following examples:
To use a port number, do the following:
jdbc:sqlserver://localhost:1433;integratedSecurity=true;<more properties as required>;
To use a JDBC URL property, do the following:
jdbc:sqlserver://localhost;instanceName=instance1;integratedSecurity=true;<more properties as required>;</b>
Because the named instance has no explicit port I've tried to use the second one but this doesn't work. I've tried all possible combinations of these parameters but either I get an error or my adapter connects to the first instance
Any idea how I can connect to the second named instance?We have also a SQL server 2000 instance at the same server. Yesterday I have spoken with the sql server admin and he told me that he has disconnect the sql server 2000 databases whatever this means. :-D
Now all works fine. Thank you for your help
BTW I use the following connection string:
jdbc:sqlserver://my_db_server;instanceName=my_instance_name;DatabaseName=my_db_name -
Error in File to Jdbc(MS Sql Server)
Error is like-----
attemt to establish db connection failed with sql error com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL "jdbc:microsoft:sqlserver://HYDHTC65586:1433;DatabaseName=Northwind";
SAPClassNotFoundException: com/microsoft.jdbc.sqlserver.SQLServerDriver
Exception caught by adapter framework: Database connection couldn not be established
I do not know how to configure
MS Sql Server Drivers.Could you please give me details
Thanks and Regards,
ViswanathHi,
To install JDBC driver follow the how to guide.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
UserID and Password.
Regards
Seshagiri
Edited by: N V Seshagiri on Feb 10, 2008 11:30 AM -
Does anyone know whether SQL Server comes with a straight JDBC driver?
Assuming that by SQL Server you mean Microsoft SQL Server, I do not know if it does come with (i.e. if Microsoft provides) a JDBC driver.
However, there are quite a few companies that do provide JDBC drivers for SQL Server. A name that come to mind is Merant. Check it out at http://www.merant.com/products/datadirect/_jdbc/jdbc.asp
For a complete (or atleast a more comprehensive) list of such providers, use http://industry.java.sun.com/products/jdbc/drivers to search. -
WLS 8.1 Type 4 JDBC Driver SQL Server sp_prepare/sp_execute
Hello,
I have a question regarding performance troubleshooting in a production situation using the WLS 8.1 Type 4 JDBC Driver for SQL Server and SQL Server 2000.
This driver compiles a sql statement on the sql server using sp_prepare(), saving a handle to it. It will execute the statement using sp_execute(). Subsequent uses of the same statement will skip the sp_prepare(), and just call sp_execute(). So, ideally, for a particular statement, you should see one sp_prepare, and a lot of sp_execute's.
My WLS app is running along in production, and I detect a performance problem of some sort on the sql server, such as excessive IO, or blocking.
I turn on the sql server profiler, and I can see a bunch of
sp_execute 123, 'one', 'two'
sp_execute 123, 'foo', 'bar'
with bad IO. How do I determine what the original SQL was that was used in the sp_prepare?
The only way I can see to do this is to have the sql server profiler always running to catch every sp_prepare. I can't believe that this is a best practice.
How are you all handling this type of situation?
Thanks,
DaveDave Ballard wrote:
Hi Joe,
Thanks for the suggestions. The main issue I have with both is that they
require a server restart to enable. Can't do that on my production system.
The best I've come up with since I posted is to locate the poor
performer/blocker real-time via sysprocesses, then use the sqlhandle column
to call fn_get_sql to get at least some of the sql submitted with sp_prepare().
Not pretty and difficult to do on a busy system.
What's bugging me about the sp_prepare/sp_execute technique used by the driver is:
1) sp_prepare/sp_execute don't seem to be documented anywhereThey are internal to SQLServer, so it'd be MS to document them or not.
2) It is at best inconvenient to have to troubleshoot performance issues (requiring
a server config change, server restart, and manual reconcile of two different,
possibly very large, logs based on timestamp).
Your idea to disable the stored procedure cache is interesting, but still requires
a server restart to enable, and another to disable.
To me this is a large step backwards in manageability of my system. What I don't
understand is that I don't see much discussion about this topic on any forums,
so I wonder if I'm just missing something here (maybe everyone's using Oracle).No, the same sorts of issues would be needed with Oracle. DBMSes must make tradeoffs
between normal-case runtime performance, and the instrumentation that would be needed
to simultaneously monitor performance problems.
Joe
>
Thanks,
Dave -
Hello All,
I am writing a Store proc in SQL Server as follows and trying to get the data.
Create proc sp_proc p_parm vachar(12) as
select a, b, c
from table
go
At the front end, I am using callable statement to call the store proc. In the call, I am setting the value using SetString. Stil, I am getting a ArrayBoundExceptionError. I would like to know,
(1) whether I need to list the column names a, b, c as mentioned in the Store Proc and explicitly make them to be as 'OUTPUT.
(2) whether I need to specify the outputs in the Callable statement in the java code.
Help will be appreciated.
Regards,Hi,
Thanks for your response.
Here is the code..
Getting Data
08/25/2003
import java.io.*;
import java.util.*;
import java.lang.*;
import java.sql.*;
public class TowerDetail{
public static void main(String[] args){
String userName = "username";
String passwd = "passwd";
String con_db = "jdbc:odbc:techfi-prod";
String ssn = args[0];
Vector results = new Vector();
Connection con = null;
CallableStatement cstmt = null;
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
}catch (Exception e) {
System.out.println("JDBC Error: "+e.getMessage());
return;
try{
con = DriverManager.getConnection(con_db, userName, passwd);
cstmt = con.prepareCall("{call dbo.sp_towerusage_detail(?)}");
cstmt.setString(1, ssn.trim());
System.out.println("GetUpdateCount: "+cstmt.getUpdateCount());
System.out.println("GetResultSet: "+cstmt.getResultSet());
if(cstmt.getUpdateCount() < 0){
System.out.println("Error Retrieving Data...Contact Jay!!!");
System.exit(0);
cstmt.registerOutParameter(1, java.sql.Types.VARCHAR);
cstmt.registerOutParameter(2, java.sql.Types.VARCHAR);
cstmt.registerOutParameter(3, java.sql.Types.VARCHAR);
cstmt.registerOutParameter(4, java.sql.Types.VARCHAR);
cstmt.registerOutParameter(5, java.sql.Types.VARCHAR);
cstmt.registerOutParameter(6, java.sql.Types.INTEGER);
cstmt.registerOutParameter(7, java.sql.Types.INTEGER);
cstmt.registerOutParameter(8, java.sql.Types.INTEGER);
cstmt.registerOutParameter(9, java.sql.Types.INTEGER);
cstmt.registerOutParameter(10,java.sql.Types.INTEGER);
cstmt.registerOutParameter(11,java.sql.Types.INTEGER);
cstmt.registerOutParameter(12,java.sql.Types.INTEGER);
cstmt.registerOutParameter(13,java.sql.Types.INTEGER);
cstmt.registerOutParameter(14,java.sql.Types.INTEGER);
cstmt.registerOutParameter(15,java.sql.Types.INTEGER);
cstmt.registerOutParameter(16,java.sql.Types.INTEGER);
cstmt.registerOutParameter(17,java.sql.Types.INTEGER);
ResultSet rs = cstmt.executeQuery();
while(rs.next()){
String p_new_div = rs.getString(1).trim();
String p_div = rs.getString(2).trim();
String p_expd4 = rs.getString(3).trim();
String p_repcd = rs.getString(4).trim();
String p_rep = rs.getString(5).trim();
int p_jan = rs.getInt(6);
int p_feb = rs.getInt(7);
int p_mar = rs.getInt(8);
int p_apr = rs.getInt(9);
int p_may = rs.getInt(10);
int p_jun = rs.getInt(11);
int p_jul = rs.getInt(12);
int p_aug = rs.getInt(13);
int p_sep = rs.getInt(14);
int p_oct = rs.getInt(15);
int p_nov = rs.getInt(16);
int p_dec = rs.getInt(17);
System.out.println(p_new_div+" "+p_div+" "+p_expd4+" "+p_repcd+" "+p_rep+"
"+p_jan+" "+p_feb+" "+p_mar+" "+p_apr+" "+p_may+" "+p_jun+" "+p_jul+" "+p_aug+" "+p_sep+"
"+p_oct+" "+p_nov+" "+p_dec);
if(cstmt.getUpdateCount() <= 0){
System.out.println("*********************************************");
cstmt.close();
con.close();
}catch(SQLException ex){
System.out.println("SQLException: ");
System.out.println(ex.getMessage());
}catch(NullPointerException e){
System.out.println("Null Pointer Exception: ");
System.out.println(e.getMessage());
I am getting this error when executing...
c:>java TowerDetail param1
Exception in thread "main" java.lang.ArrayIndexOutOf
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.c
edStatement.java:1021)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.s
ent.java:525)
at TowerDetail.main(TowerDetail.java:35) -
Hi
I am trying to connect jdeveloper to sql server express.
my code is as follows:
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
conn = DriverManager.getConnection("jdbc:sqlserver://localhost\\SQLExpress;user = joebloggs;pssword=password;")
At the moment though I am getting the following error message
java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
What does this mean and what am i doing wrong.This means, that the JDBC Driver for MS SQL-Server is not present. You need to include the Jar-file in the Classpath. Make sure, that you use the correct JRE.....
Maybe you are looking for
-
I used to be able to choose from all folders when bookmarking a site. I was able to click on 'Choose' and all folder would drop down. After a firefox update yesterday, only 5 folders show up, along with the 'Choose' option. When I click on 'Choose' i
-
I updated the iTunes software for my iPhone, which followed reinstalling iTunes. I moved some of my music back into iTunes, hoping to add a variety of tunes to the phone. Now, iTunes won't let me move anything into the phone. My wife thinks it could
-
[SOLVED] Make Totem media player use Adwaita White instead of Dark
I do not like the dark variant of adwaita that totem uses as default. I have tried messing with gtkrc-3.0 but have had no luck. I figure out how to change this in Ubuntu 11.10 but forget how. I booted into it but could find out what I had done. Last
-
Random Airport Express Disconnects
Hi, I don't kno if this has been posted are if any others of u have a problem w/ this. But i have my Airport Express set up w/ windows xp and for the most part it works fine. But occasionaly every few hours it'll randomly lose connection and reconnec
-
Remove _adf.ctrl-state param in url
I using Jdeveloper 11.1.1.1.0 for create jspx page, when run jspx page then url is http://127.0.0.1:7101/appName/faces/Page1.jspx?_adf.ctrl-state=xxxx I don't want _adf.ctrl-state=xxxx in url Please help me. Thanks