Can't connect to my mssql 2000 using netbeans 6.1
import java.sql.*;
* @author jmocke
public class Test {
public Test() throws Exception {
// Get connection
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver());
Connection connection = DriverManager.getConnection(
"jdbc:microsoft:sqlserver://JMOCKE-236913B2:1433","sa","mysqlpwd");
if (connection != null) {
System.out.println();
System.out.println("Successfully connected");
System.out.println();
// Meta data
DatabaseMetaData meta = connection.getMetaData();
System.out.println("\nDriver Information");
System.out.println("Driver Name: "
+ meta.getDriverName());
System.out.println("Driver Version: "
+ meta.getDriverVersion());
System.out.println("\nDatabase Information ");
System.out.println("Database Name: "
+ meta.getDatabaseProductName());
System.out.println("Database Version: "+
meta.getDatabaseProductVersion());
} // Test
After running this code i got the following:
init:
deps-jar:
compile:
run:
SQL Exception: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host JMOCKE-236913B2, port 1433 has failed.
Error: Connection refused: connect. Please verify the connection properties and check that a SQL Server instance is running on the host
and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.
BUILD SUCCESSFUL (total time: 1 second)
I am using MSsql 2000 and Netbeans IDE 6.1
After checking the port(1433),the Firewall,the TCP/IP and the SQL Server instance(is runnig) i steal have the same error message.
please help me!
Ps: i have also instaled the microsoft mssql driver (version 2.3.94.0)
dvohra09 wrote:
Please replace:
Connection connection = DriverManager.getConnection(
"jdbc:microsoft:sqlserver://JMOCKE-236913B2:1433","sa","mysqlpwd");
with:
Connection connection = DriverManager.getConnection(
"jdbc:sqlserver://JMOCKE-236913B2:1433","sa","mysqlpwd");Please note that if the second part of the url that that OP provided was incorrect then java/jdbc would have thrown a driver not found exception.
Since that didn't happen we can be sure that at least the first two parts of the url is correct.
[http://support.microsoft.com/kb/313100]
A different driver would of course require a different url.
Similar Messages
-
Can't connect to SQL Server 2000 from serlet
Hi,
I can connect to SQL Server 2000 from standalone program after set the classpath properly.
but I Can't connect to SQL Server 2000 from serlet, I am using Tomcat 4.1 and Win2K pro now. Do I need to set something for servlet just like CLASSPATH?
Any help will be appreciated.
package usingjsp;
import java.io.*;
import java.sql.*;
import javax.servlet.*;
public class JDBCServlet extends GenericServlet
protected Connection conn;
public void init()
try
// Make sure the JdbcOdbcDriver class is loaded
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
// Try to connect to a database via ODBC
conn = DriverManager.getConnection(
"jdbc:microsoft:sqlserver://hu:1433", "sa","");
catch (Exception exc)
// If there's an error, use the servlet logging API
getServletContext().log(
"Error making JDBC connection: ", exc);
public void service(ServletRequest request, ServletResponse response)
throws java.io.IOException
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<HTML>");
out.println("<BODY>");
out.println("<PRE>");
out.println("The JDBC connection is:");
out.println(conn);
out.println("</PRE>");
out.println("</BODY>");
out.println("</HTML>");i also have this problem..do u have any solution?
-
i m using repot engin to disply report its running in windows well in my local machine but whn i deployeed it to test server (AIX) it gave me this error server is websphere
E SRVE0026E: [Servlet Error]-[Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.]: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:175)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java(Compiled Code))
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91)
at java.awt.Font.initializeFont(Font.java:333)
at java.awt.Font.<init>(Font.java:368)
at com.actuate.ereport.engine.templateio.TmplReader.getFont(Unknown Source)
at com.actuate.ereport.engine.templateio.TmplReader.getFont(Unknown Source)
at com.actuate.ereport.engine.templateio.XMLTmplReader.handleFont(Unknown Source)
at com.actuate.ereport.engine.templateio.XMLTmplReader.closeObjects(Unknown Source)
at com.actuate.ereport.engine.templateio.XMLTmplReader.endElement(Unknown Source)
at com.actuate.ereport.engine.templateio.XMLTmplReader.startParsing(Unknown Source)
at com.actuate.ereport.engine.templateio.XMLTmplReader.readTemplate(Unknown Source)
at com.actuate.ereport.engine.templateio.TmplReader.ReadTemplateFromBytes(Unknown Source)
at com.actuate.ereport.engine.templateio.TmplReader.readTemplate(Unknown Source)
at com.actuate.ereport.engine.ACJEngine.readTemplate(Unknown Source)
at com.actuate.ereport.engine.ACJEngine.readTemplate(Unknown Source)
at com.actuate.ereport.eapi.factory.DesignFactoryImpl.load(Unknown Source)
at com.actuate.ereport.eapi.factory.DesignFactoryImpl.load(Unknown Source)
at ccrmsweb.actions.PrintRpts.execute(PrintRpts.java:129)
Please tell me wht exactly i have to do, i men exactly its very urgentCheck this thread:
Re: Can't connect to X11 window server using 'localhost:0.0' -
Hi,
I'm running WebLogic 5.1 sp10 on a Solaris box and I get the
following error:
java.rmi.RemoteException: java.lang.InternalError: Can't connect to
X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:59)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Font.initializeFont(Font.java:264)
at java.awt.Font.(Font.java:298)
at com.hrw.xls.EmailXLSThread.getCellWidth(EmailXLSThread.java:162)
caused by the following code fragment:
Font f = new Font(fontName, fontStyle, fontHeight);
FontMetrics fm = (new Panel()).getFontMetrics(f);
Have I just forgotten to set an environment variable? I would prefer
not to install bulky pieces of software, but if that's what it takes
to get over this error, so be it.
Thanks, Dave A.A Java AWT, X11 problem posted in the weblogic ejb newsgroup. I haven't been in here for long, but
that has to be a first.
If you have the DISPLAY env variable set to :0.0, you have to be at the console on a Solaris box
running the XServer. 'xdm' I think is the code that has to be running. Also, I think the format is
<hostname:0.0> or better <hostname:0> unless you are on a multi-headed workstation. Something like:
export DISPLAY=hostname:0
where hostname is the name of the host running an XServer and the .xhosts file allows access to the
XServer from the display client.
Apparently, you are not at the console?
Anyway, I don't think there is a newsgroup here that I could even recommend to cross-post this to as
it is not a WebLogic question. I think I would try the Discussion Forums at http://java.sun.com.
Bill
"D. Alvarado" wrote:
Hi,
I'm running WebLogic 5.1 sp10 on a Solaris box and I get the
following error:
java.rmi.RemoteException: java.lang.InternalError: Can't connect to
X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:59)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Font.initializeFont(Font.java:264)
at java.awt.Font.(Font.java:298)
at com.hrw.xls.EmailXLSThread.getCellWidth(EmailXLSThread.java:162)
caused by the following code fragment:
Font f = new Font(fontName, fontStyle, fontHeight);
FontMetrics fm = (new Panel()).getFontMetrics(f);
Have I just forgotten to set an environment variable? I would prefer
not to install bulky pieces of software, but if that's what it takes
to get over this error, so be it.
Thanks, Dave A. -
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY
i try to use jfreechart to create a piechart on a aix os with jdk1.3.1 and the aix system does not have a xwindow installed
and the found the following error
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:77)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java(Compiled Code))
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:72)
at java.awt.Font.initializeFont(Font.java:285)
at java.awt.Font.<init>(Font.java:319)
at org.jfree.chart.plot.PiePlot.<clinit>(PiePlot.java:230)
i got the tip of passing -Djava.awt.headless=true to vm to disable system graphic calls but after restart weblogic i still get the same error
i am wondering if this case has something to do with jdk 1.3.1, and perhaps newer versions of jdk can take the parameter and operate correctly
is that right?is headless option supported in jdk1.3.1?No,
It was added in JDK 1.4:
http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4281163
Kaj -
Can't connect to X11 window server using
java.lang.InternalError: Can't connect to X11 window server using "Ip" as the value of the DISPLAY variable.
I get the above error when I try to create an instance of the JProgressBar.
I have not been able to create a workaround.
One suggestion that I had was to use the following system command.
System.setProperty("java.awt.headless","true");
That gave me a null pointer exception.
I also tried setting the compiler parameters to make this process headless, but it did not make any difference.
I am running this code in a Unix environment.
Any ideas?Hi
Generally in Unix environment the server should accept the connections from clients. Run the xhost + command on the server to which you are trying to connect and then try your application.
Thanks
Srinivas -
Can't connect to X11 window server using ':0.0'
I tried to deploy a sampel BIBean application (JSP+BIBean) to standalone OC4J( install on AIX).
When I launch the jsp from windows browser,I got the following error message.
And I export DISPLAY=IP address:0.0 and bounce the OC4J, the IP address is the machine which I launch the browser and JSP. The I can lanuch the BIBean sample application successfuly (I can see the crosstab, grap...).
But this means that only my machine's browser can access application, not others.. Is ther anything wrong with my configurations.. Please help!!!
500 Internal Server Error
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:77) at java.lang.Class.forName1(Native Method) at java.lang.Class.forName(Class.java:142) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:72) at java.awt.Font.initializeFont(Font.java:285) at java.awt.Font.<init>(Font.java:319) at oracle.dss.dataView.managers.ViewStyle.<clinit>(ViewStyle.java:6600) at oracle.dss.thin.beans.dataView.BaseTitle.<init>(BaseTitle.java:50) at oracle.dss.thin.beans.dataView.Title.<init>(Title.java:31) at oracle.dss.thin.beans.dataView.Title.<init>(Title.java:42) at oracle.dss.thin.beans.dataView.ThinDataview.<init>(ThinDataview.java:131) at oracle.dss.thin.beans.gridView.ThinGridView.<init>(ThinGridView.java:123) at oracle.dss.thin.beans.crosstab.ThinCrosstab.<init>(ThinCrosstab.java:216) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:262) at oracle.dss.persistence.persistencemanager.client.DefaultObjectFactory.getObjectInstance(DefaultObjectFactory.java:199) at oracle.dss.persistence.persistencemanager.client.DefaultStateHandler.recreatePersistableFromStateAgent(DefaultStateHandler.java:357) at oracle.dss.metadataManager.client.handlers.persistence.PersistenceMetadataHandler.getObjectInstance(PersistenceMetadataHandler.java:242) at oracle.dss.metadataManager.client.MetadataManager.getUserObject(MetadataManager.java:3168) at oracle.dss.metadataManager.common.MDFolder.lookup(MDFolder.java:355) at oracle.dss.metadataManager.common.MDFolder.lookup(MDFolder.java:539) at oracle.dss.addins.thin.common.BaseThinSession.loadView(BaseThinSession.java:110) at oracle.dss.addins.thin.common.BasePresentationHandler.createBIThinObject(BasePresentationHandler.java:806) at oracle.dss.addins.jspTags.PresentationTag.createThinObject(PresentationTag.java:102) at oracle.dss.addins.jspTags.BIBaseTag.getThinObject(BIBaseTag.java:72) at oracle.dss.addins.jspTags.PresentationTag.doStartTag(PresentationTag.java:162) at viewerJSP.jspService(_viewerJSP.java:84) [SRC:/viewerJSP.jsp:7] at com.orionserver[Oracle9iAS (9.0.3.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code)) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled Code)) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java(Compiled Code)) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java(Compiled Code)) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797) at java.lang.Thread.run(Thread.java:512)Hi, Kelly
Thanks for your kind response.
The X-server should work, when I export DISPLY to a remote X-server.
How about ImageServlet.. It seems that the ImageServlet has more advantages than X-server or XVBF
I tried to configure OC4J using ImageServlet follow UIX developer's guide. But I was not able to force OC4J to use ImageSevlet. But OC4J is stll try to find X-sever..
I modified the web.xml file for the sample application I deployed.
Is this a right configuration? What is the different
<servlet>^M
<servlet-name>uix</servlet-name>^M
<servlet-class>oracle.cabo.servlet.UIXServlet</servlet-class>^M
<init-param>^M
<servlet-name>uix</servlet-name>^M
<servlet-class>oracle.cabo.image.servlet.ImageServlet</servlet-class>^M -
Hi all,
I am getting the following error while running the JSP program.
Actually we are running our applications in REMOTE LINUX SERVER (Redhat 7.0).
Installed Softwares : jdk1.3.1_02 & Resin-2.1.0
500 Servlet Exception
java.lang.InternalError: Can't connect to X11 window server using ':0.0'
as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:59)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Font.initializeFont(Font.java:264)
at java.awt.Font.<init>(Font.java:298)
at CreateImage.create(CreateImage.java:22)
at send2trinity_jsp._jspService(/sms/send2trinity.jsp:136)
at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
at com.caucho.jsp.Page.subservice(Page.java:485)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:181)
at com.caucho.server.http.Invocation.service(Invocation.java:291)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:132)
at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:341)
at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:271)
at com.caucho.server.TcpConnection.run(TcpConnection.java:136)
at java.lang.Thread.run(Thread.java:484)
After getting this error i have logged in from local and set the DISPLAY varible as ':0.0'.
But there is no improvemnt and getting the error like,
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Font.initializeFont(Font.java:264)
at java.awt.Font.<init>(Font.java:298)
at CreateImage.create(CreateImage.java:22)
at send2trinity_jsp._jspService(/sms/send2trinity.jsp:136)
at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
at com.caucho.jsp.Page.subservice(Page.java:485)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:181)
at com.caucho.server.http.Invocation.service(Invocation.java:291)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:132)
at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:341)
at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:271)
at com.caucho.server.TcpConnection.run(TcpConnection.java:136)
at java.lang.Thread.run(Thread.java:484)
How should i solve this problem? Have anybody faced the same problem ?
Please help.
Thanks in advance.
Bye.Hi all,
Thanks a lot for ur reply. It worked me atlast.I have installed JDK1.4 and try to run my program.But it was creating some junk value instaed of creating picture. Actullay my programme needs some third party fonts , it was not loading after i have upgraded. But what i did is , copied the fonts file in to <Java_home>/jre/lib/fonts/ directory. Now it's working fine.
I have done another thing .I am using resin-2.1.0 to serve my JSp pages . So i have added $JAVA_ARGS="-Djava.awt.headless=true"; in wrapper.pl . If u will not add this line then iot will not work for you.
Thank u once again.
Bye. -
I've updated to yosemite from Mavericks, but since i can't connect to the internet I used my time machine back up which was march 2013. Now my macbook pro won't start and ends with a prohibted sign. Any suggestions pls.
Install or Reinstall Yosemite, Mavericks, Mountain Lion, or Lion from Scratch
Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
How to Clean Install OS X Yosemite
OS X Mavericks- Erase and reinstall OS X
OS X Mountain Lion- Erase and reinstall OS X
OS X Lion- Erase and reinstall Mac OS X
Note: You will need an active Internet connection. I suggest using Ethernet if possible
because it is three times faster than wireless. -
I CAN NOT CONNECT TO THE INTERNET WHILE USING MY IPAD I KEEP GETTING A MESSAGE SAYING SAFARI COULD NOT OPEN THE PAGE BECAUSE THE SERVER STOPPED RESPONDING PLEASE HELP THANK YOU
Try the following:
1. Turn router off for 30 seconds and on again
2. Settings>General>Reset>Reset Network Settings
3. Reset iPad; hold the Sleep and Home button down until you see the Apple Logo -
Dear all,
i am installing sap4.7 in hp-ux, after installing CI, i start DI, in 17 th step it asking to install oracle by executing RUNINSTALLER.....just i open new termenal (xshell) with orasid user i executed RUNINSTALLER but after some time it will show like this---- 172.16.1.254 is my local machine 80.0.0.151 is server
/oracle/stage/920_64/Disk1/SAP/SVRCUSTOM.RSP --> /tmp/.orainst_rsp.8848: Done
Initializing Java Virtual Machine from ../../stage/Components/oracle.swd.jre/1.3.1.0.0a/1/DataFiles/Expanded/bin/java. Please wait...
$ Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using '172.16.1.254:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:58)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:53)
at java.awt.Window.<init>(Window.java:183)
at java.awt.Frame.<init>(Frame.java:310)
at java.awt.Frame.<init>(Frame.java:289)
at oracle.ewt.popup.PopupFrame.<init>(Unknown Source)
at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source)
at oracle.sysman.oii.oiif.oiifm.OiifmMainFrame.<init>(OiifmMainFrame.java:296)
at oracle.sysman.oii.oiic.OiicInstaller.<init>(OiicInstaller.java:231)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:599)
How to resolve this issue, what is the problem.
Regards,
satish-kIf you logon to the console with a user, only that user is permitted to "send" the display to the screen. If you do an "su - ora<sid>" that user must be enable to do so too.
- logon as root
- open a terminal windows (a new one)
- execute "xhost +"
- use another terminal window
- execute "su - ora<sid>"
- execute "setenv DISPLAY <ip>:<port>"
- then execute ./RUNINSTALLER in the SAP subdirectory of Disk1 (NOT runInstaller)
Markus -
Can't connect to unc path, UNC using port 80 instead port 445
Can't connect to unc path, UNC using port 80 instead port 445,
Please advise me,
Regards,
LiorHi,
Can you successfully ping the UNC server? If the ping fails , it means that the UNC server is down, in this case, you should find the UNC server and check the running status.
If you can successfully ping the UNC server, the port number you specify should not be 80, because the 80 port is already used by default, So, in this case, you should ask the UNC server administrator to change to the default port number 445.
Regards
Wade Liu
TechNet Community Support -
I can not connect to the app store using my iphone 5
I can not connect to the app store using my iphone 5. When I first got it I was able to-but not since???
Please helpCome on guys. Help me out. When I click on the app store icon, it'll just go to a blank screen. The only time there is anything on the screen is under the updates tab. Then it just says no updates found. I can not browse apps or search for them. It just goes to blank screen
-
TS1398 I can't connect to the internet while using wi fi on my iphone 4S.
I can't connect to the internet while using wi fi on my iphone 4S. I can connect on my computer and on my IPad but not with my iphone. I have tried everything. Once or twice it did connect but then disconnected immediately. I have tried everything.
LeeinSunnyIsles wrote:
I can't connect to the internet while using wi fi on my iphone 4S. I can connect on my computer and on my IPad but not with my iphone. I have tried everything. Once or twice it did connect but then disconnected immediately. I have tried everything.
If you have truly tried "everything" then there is no hope of it ever working again. However, have you tried rebooting your router?
Have you tried Settings/General/Reset - Reset network settings? -
Can't connect to X11 window server using 'localhost:0.0'
Hello again,
I tried as you suggested under the GUI environment of Red Hat Linux Enterprise 3 (WS).
=====
[root@Linux2005 /]# su - oracle
[oracle@Linux2005 oracle]$ /OraHome1/Disk1/runInstaller
[oracle@Linux2005 oracle]$ Initializing Java Virtual Machine from /tmp/OraInstall2004-08-18_09-03-45AM/jre/bin/java. Please wait...
Xlib: connection to "localhost:0.0" refused by server
Xlib: No protocol specified
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:59)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Window.<init>(Window.java:188)
at java.awt.Frame.<init>(Frame.java:315)
at java.awt.Frame.<init>(Frame.java:262)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:593)
[oracle@Linux2005 oracle]$
=====
The server does not take it.
What else can I do ? Any ideas ?
PTI had the same problem (Oracle unbreakable Linux) and tried everything you suggest.
Finally when I implement this in bash_profile of oracle user and relogin:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=TSH1; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
runInstaller run as hell!
Maybe you are looking for
-
Quicktime 10.0 won't play any of my wmv videos - help please
I get a pop up that says I don't have quicktime installed. Can anybody help? Thx
-
Copy/paste text from Word doc or PDF to Robohelp
Bolded words, indentions, paragraphs, line spacing, font, and text size amongst other things are lost when I do a simple copy/paste... Any way to relieve this? Thanks
-
Problems with sound in the FCP
I have a mpg movie that was created in another software Studio 14. I transfer the file to my HD and it plays fine video and sound. I need to edit it and I imported it into a FCP project. The video is fine, but there is no sound at all. Any suggestion
-
Why Illustrator change entered size and position values?
Hy All! Illustrator 5.5 always change my entered size or position values. (For example: I type 10mm, hit enter, and 10 changed to 10,231mm.) I checked again and again, but I have no any enabled snap function. I have Illustrator CS6 too, what works fi
-
Fixed Column Number CSV variable? How to parse
I have the following variable that is a result of a cfexecute that I would like to populate into a database. There doesn't appear to be a Line Feed but there are only three columns. My question is how can I accomplish parsing the 1st value as Column