Validate w/ schema ---Problem setting up JAXP1.2 jar

Sorry, I may just be being a retard
I am trying to validate an xml document with a schema. I know that I need to use a JAXP 1.2 parser.
I am using Eclipse 2.1 right now, but I tried this through the command prompt to see if it was something I was doing specifically in eclipse.
First, I want to make sure that I have the proper jar.
Where do I get the JAXP 1.2 jar? The only place that I found it was with the Java Web Services Developer Pack 1.4 release. Is that the correct place to get it?
Second, if so, what do I need to do to get java to use that jar instead of existing one? From what I read, I just need to put the new jar in the classpath first. Maybe I am doing this worng, please explain what I should be doing.
Here is the code that I am running. I keep getting the SAXNotRecognizedException that they say you get when you don't have a JAXP 1.2 parser.
import java.io.*;
import java.sql.*;
import javax.xml.parsers.*;
import org.apache.commons.digester.Digester;
public class dhq {
   static final String JAXP_SCHEMA_LANGUAGE =
      "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
   static final String W3C_XML_SCHEMA =
      "http://www.w3.org/2001/XMLSchema";
   static final String JAXP_SCHEMA_SOURCE =
      "http://java.sun.com/xml/jaxp/properties/schemaSource";
   static final String DHQWEB_SCHEMA = "dhqweb.xsd";
   static final String DHQWEB_XML = "DHQ.xml";
   public static void main(String[] args) {
      try {
      SAXParserFactory factory =
         SAXParserFactory.newInstance();
      factory.setValidating(true);
      SAXParser parser = factory.newSAXParser();
      parser.setProperty(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA); //Throws SAXNotRecognizedException here
      parser.setProperty(JAXP_SCHEMA_SOURCE, new File(DHQWEB_SCHEMA));
      Digester d = new Digester(); //Haven't gotten to implementing this yet.
      parser.parse(new FileInputStream(new File(DHQWEB_XML)), d);Thanks in advance for any help, especially for helping with such a newb problem.

Here is some content from the following install link:
http://java.sun.com/xml/docs/summer02/jaxp/ReleaseNotes.html#deploy
Using JAXP 1.2 with the Java Web Services Developer Pack (Java WSDP)
Again, if you are using the Java WSDP installation process to do the update, then you don't have to worry about the updates. But if you are updating individual jar files, copy them to
<JWSDP_HOME>/common/endorsed/
Using JAXP 1.2 with Tomcat version 4.0.3 or 3.3
First, be sure to remove xerces.jar from
<TOMCAT_HOME>/common/lib/
The reason for that step is that xerces.jar contains earlier Xerces implementations which will interfere with the operation of JAXP 1.2.
The next step depends on which version of the Java 2 SDK you are using:
For version 1.4 of the Java 2 SDK:
You need to know that JAXP 1.1 is built into that version of the platform. JAXP 1.1 has a smaller footprint, but JAXP 1.2 implements XML Schema, and it also includes transform compiler, XSLTC.
To use the JAXP 1.2 implementation instead of the JAXP 1.1 implementation, copy all of the JAR files except jaxp-api.jar to
<TOMCAT_HOME>/common/lib/
Then, when running Tomcat, set the java.endorsed.dirs system property to
<TOMCAT_HOME>/common/lib/
Note:
The jaxp-api.jar file should not be copied, because it contains high-level factory APIs that are not subject to change.
For version 1.3 of the Java 2 SDK:
Copy all 6 JAR files to
<TOMCAT_HOME>/common/lib/
and add that directory to your classpath.
Using JAXP 1.2 with version 1.4.0 of the Java 2 platform
Version 1.4 of the Java 2 platform has JAXP 1.1 implementations built in. JAXP 1.1 has a smaller footprint, but JAXP 1.2 implements XML Schema and the transform compiler, XSLTC.
To use the JAXP 1.2 implementation, copy all of the jar files except jaxp-api.jar into
<JAVA_HOME>/jre/lib/endorsed/
Note:
The jaxp-api.jar file should not be copied, because it contains high-level factory APIs that are not subject to change.

Similar Messages

  • Problems setting up JDBC

    I recently downloaded mysql Connector for my project.
    However, I have problems setting it up.
    When I run my program, It gives me a class not defined error.
    System.out.println("Registering Driver...");
                   Class.forName("com.mysql.jdbc.Driver").newInstance();
    System.out.println("Connected to database");
    System.out.println("Creating Connection");
    connection= DriverManager.getConnection("jdbc:mysql://localhost:8080/neuis");
    System.out.println("Connection created");
    catch(Exception ex)
    System.out.println("Error in loading jdbc Driver: "+ex);
    ex.printStackTrace();
    I have put the jar file of the JDBC Bridge in a folder
    C:\Drivers\Sql Connector
    I have also added the absolute path of the jar to the system classpath
    The value put in is:
    C:\Drivers\Sql Connector\mysql-connector-java-3.1.10-bin.jar.
    I am not sure what the problem is because I was told by the API that this was all I needed to do. Are there any other files I need to include with the jar file? Also, Is there a specific folder I must put it in?
    Thank you in advance.

    Hi,
    Take a look at the below link
    http://www.cs.nott.ac.uk/TSG/manuals/databases/mysql/jdbc.html
    may help you to setting up the jdbc with mysql
    regards
    MJ

  • JDeveloper problem setting up a database connection

    I am having some problem setting up a connection to my database. Before I say any more let me explain what I need. I need 2 database connections 1 to a 10g R3 database and one to an 8.0.5.
    I do realize that JDeveloper will only connect back to 8.1.7 because of the JDBC version that is installed with it.
    What I really need to know is "Is it possible to define and use 2 different versions of JDBC" I really don't want to move back to the version that works with both because I am afraid of what performance/benefits I will lose from the latest and greatest.
    The latest version that I can determine will work with 8.0.5 is the last version for 9i.
    Any Ideas would be helpful.
    The reason for this situation is that I have a production database that I will have to keep up with until the full version of the system is complete so that is why I even care about 8.0.5.
    Thanks alot for your time,
    Thom

    I have a similar problem and I would much appreciate any help in this matter.
    I have a wireless network set at home with two computers connected to it:
    My workstation called Home-ws and my laptop called Acer. I can access the d:\ drive of my workstation from my laptop without any problem.
    On my workstation I installed the Oracle 10g product and on my laptop I installed Oracle SQL Developer. On SQL developer I am trying to create a connection to the Oracle server:
    My settings are as below:
    Connection name: orcl_system
    User name: system
    Password: ******
    Host name: Home-ws
    Port: 1521
    SID: orcl
    When I push test I am getting the following error message:
    Status: Failure –Io exception: The Network Adapter could not establish the connection
    Are there any special settings that should be made set up a wireless connection to my database?
    Then I did the following things below:
    1. I downloaded from oracle.com the instantclient-basic-win32-10.2.0.2-20060508.zip file and unzipped it in a folder called instantclient_10_2. There were a number of DLL and two jar files plus sqlplus.exe
    2. I started sqlplus from that server
    3. sqlplus failed with a similar error as sql developer.
    4. I checked for tnsping. There is no tnsping such and exe on my laptop. I looks like I have to install the DLLs I downloaded them but there are no instructions about how to install them. Should I just copy them in system32 folder?
    5. I looked for firewalls on my Home-ws workstation (where my oracle server is installed) and on my Acer laptop. The firewalls were activated. I added on exception called oracle for port 1521 on both computers and tried to connect again. I tried with both TCP and UDP options and it did not work in both cases.
    I am out of ideas. Any help would be much appreciated.
    Thank you in advance for your help.
    Julian

  • Having problems setting text to a JLabel!!

    HI *.*,
    i'm having problems setting text to a JLabel.
    i have a JFrame with a JPanels and on the JPanel i have a JLabel.
    I have a text field wihich is used to input text.
    So, i'm using textField.getText() to read the text of the text field and setText() to write it to the Label.
    but setText() isn't displaying the text on the label.
    I'm using NetBeans as an ide
    Does anyone have any ideas??

    Here is some code
    public class AddClass extends JFrame implements ActionListener{
        public AddClass() {
            initComponents();
        }//end of 1st constructor with initComp
        //initComponents
        private void initComponents() {
            getContentPane().setLayout(new java.awt.GridLayout(3, 1));
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            prodPanel.setLayout(new java.awt.GridLayout(1, 3));
            prodPanel.setBackground(new java.awt.Color(255, 255, 255));
            prodPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Production", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 1, 12)));
            westPanel.setLayout(new java.awt.GridLayout(6, 0));
            westPanel.setBackground(new java.awt.Color(255, 255, 255));
            westPanel.add(westLab1);
            westLab2.setBackground(new java.awt.Color(255, 255, 255));
            westLab2.setFont(new java.awt.Font("Arial", 1, 36));
            westLab2.setForeground(new java.awt.Color(0, 204, 0));
            westLab2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
            westLab2.setIcon(new javax.swing.ImageIcon("C:\\icontexto-webdev-bullet-048x048.png"));
            westLab2.setText("MQ 35");
            westLab2.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
            westLab2.setIconTextGap(10);
            westLab2.setInheritsPopupMenu(false);
            westPanel.add(westLab2);
            westPanel.add(westLab3);
            westPanel.add(westLab4);
            westPanel.add(westLab5);
            prodPanel.add(westPanel);
            setJMenuBar(menuBar);
            setTitle("Broker Monitor");
            this.setSize(700, 700);
            BrokerWindowCloser brkWindowCloser = new BrokerWindowCloser();
            this.addWindowListener(brkWindowCloser);
            pack();
            //       setVisible(true);
        }//end of initComponents
        public AddClass(String st) {
            initComponents();
            westLab6.setVisible(true);
    //        System.out.println("in broker  " + st); 
            westLab6.setText(st);
            System.out.println(st);
            westLab6.setBackground(new java.awt.Color(255, 255, 255));
            westLab6.setFont(new java.awt.Font("Arial", 1, 36));
            westLab6.setForeground(new java.awt.Color(0, 204, 0));
            westLab6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
            westLab6.setIcon(new javax.swing.ImageIcon("C:\\PNG\\icontexto-webdev-bullet-048x048.png"));
            westLab6.setEnabled(true);
            westLab6.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
            westLab6.setIconTextGap(15);
            westLab6.setInheritsPopupMenu(false);
            westPanel.add(westLab6);
    //       this.validate();
            westPanel.repaint();
        public void actionPerformed(ActionEvent ae) {
            Object source = ae.getSource();
            if(source == exitMI) {
                System.exit(0);
            }//end of if exitMI
            if(source == addMI){
                new AddMQ_1_1();
            if(source == removeMI){
                new RemoveMQ_1();
        }//end of actionPerformed
        class BrokerWindowCloser extends WindowAdapter {
            public void windowClosing(WindowEvent we) {
        }//end of windowcloserclass
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new AddClass().setVisible(true);
        }//end of main
    }// End of variables declaration
       public void addButtonActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
            Object source = evt.getSource();
            if(source == addButton){
                System.out.println("here");
                String st = mqNameJTF.getText();
                Broker1 br = new Broker1(st);
                AddClass adc = new AddClass(st);
                this.repaint();
    this.dispose();
            }//end of if addButton
        }//end addButtonActionPerformed

  • Schema problem with ibatis

    Hi,
    I am using Ibatis and spring framework and connection pooling is done at the websphere end which refreshes the connection for every database connection that is being fetched. After the connection is being fetched. A set connection is called and the schema is set using the execute command for every connection being fetched. Now, there are various connection schemas being used which cannot be hard-coded into the code. Apart from this there are hundreds of xml files and using ${schema} for every sql statement is a big code change.
    The problem is that on every connection that is being fetched, the execute command is called to set the schema which leads to a considerable performance issue. Is there any way in which the schema can be set just once in the beginning for all the connections being fetched?
    Any help is highly commendable.
    Thanks

    I am using Ibatis and spring framework and connection pooling is done at the websphere end which refreshes the connection for every database connection that is being fetched. What do you mean refreshed? This sounds bad and if you mean reconnecting than this defeats the purpose of using a pool.
    After the connection is being fetched. A set connection is called and the schema is set using the execute command for every connection being fetched. What do you mean a "set connection" and "schema is set"? Are you saying you have a pool for each db schema? If so that's not so horrible I suppose. It certainly won't affect performance (given the number of connections/schemas is reasonable).
    Now, there are various connection schemas being used which cannot be hard-coded into the code. Apart from this there are hundreds of xml files and using ${schema} for every sql statement is a big code change.The code change might be worth it, but not sure what's wrong yet.
    The problem is that on every connection that is being fetched, the execute command is called to set the schema which leads to a considerable performance issue. Is there any way in which the schema can be set just once in the beginning for all the connections being fetched? How many schemas do you have? Even if you had a pool for every schema you should only be initializing connections once. I apologize if this wasn't much help. Please provide more info. How are the DataSources configured in WebSphere?

  • Problem setting up JNDI on tomcat 5.5

    Hi,
    I have a problem setting up JNDi in my application, I looked for all topics on this forum about setting up JNDI on tomacat, but I didn't figured out what is wrong, or what I did wrong, so if anyone can help me, here is the content of my xml files:
    META_INF/context.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/probaWeb" reloadable="true" debug="5"
    docBase="probaWeb"
    crossContext="true">
    <Resource name="jdbc/probadb" auth="Container"
    type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000"
    username="root" password="majica"
    driverClassName="com.mysql.jdbc.Driver"
    factory = "org.apache.commons.dbcp.BasicDataSourceFactory"
    url="jdbc:mysql://localhost:3309:probadb?autoReconnect=true"/>
    </Context>
    hibernate.cfg.xml:
    <property name="connection.datasource">
    java:comp/env/jdbc/probadb
    </property>
    <property name="show_sql">true</property>
    <property name="dialect">
    org.hibernate.dialect.MySQLDialect
    </property>
    <property name="current_session_context_class">thread</property>
    <property name="cache.provider_class">
    org.hibernate.cache.NoCacheProvider
    </property>
    <mapping resource="com/probaapp/web/pojo/Proba.hbm.xml"/>
    </session-factory>
    I placed mysql-connector-java-5.0.4-bin.jar in common/lib
    and when I run my application I get the following error:
    Caused by: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class 'com.mysql.jdbc.Driver' for connect URL 'jdbc:mysql://localhost:3309:probadb?autoReconnect=true'
    can anyone hlp me?
    Thnx

    Hi,
    I have a problem setting up JNDi in my application, I
    looked for all topics on this forum about setting up
    JNDI on tomacat, but I didn't figured out what is
    wrong, or what I did wrong, so if anyone can help me,
    here is the content of my xml files:
    META_INF/context.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/probaWeb" reloadable="true"
    debug="5"
    docBase="probaWeb"
    crossContext="true">
    <Resource name="jdbc/probadb" auth="Container"
    type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000"
    username="root" password="majica"
    driverClassName="com.mysql.jdbc.Driver"
    factory =
    "org.apache.commons.dbcp.BasicDataSourceFactory"
    url="jdbc:mysql://localhost:3309:probadb?autoReconnect
    =true"/>
    </Context>
    hibernate.cfg.xml:
    <property name="connection.datasource">
    java:comp/env/jdbc/probadb
    </property>
    <property name="show_sql">true</property>
    <property name="dialect">
    org.hibernate.dialect.MySQLDialect
    </property>
    <property
    name="current_session_context_class">thread</property>
    <property name="cache.provider_class">
    org.hibernate.cache.NoCacheProvider
    </property>
    <mapping
    resource="com/probaapp/web/pojo/Proba.hbm.xml"/>
    </session-factory>
    I placed mysql-connector-java-5.0.4-bin.jar in
    common/lib
    and when I run my application I get the following
    error:
    Caused by:
    org.apache.tomcat.dbcp.dbcp.SQLNestedException:
    Cannot create JDBC driver of class
    'com.mysql.jdbc.Driver' for connect URL
    'jdbc:mysql://localhost:3309:probadb?autoReconnect=tru
    e'
    can anyone hlp me?
    Thnxchanging to "
    <property name="connection.datasource">jdbc/probadb </property>
    may work.

  • Is it possible to validate a schema defined date

    Hi,
    Is it possible to validate a schema defined date in xsd as of a null type.
         <xs:element name="ContractDt">
    <xs:restriction base="xs:date"/>
    </xs:element>
    In xml file if i want to keep date null and still should be valid......how do i do it
    For eg: <ContractDt></ContractDt>
    <ContractDt>1990-12-12</ContractDt>
    Both the above should be valid.............and any other thing should be invalid. I know we can use patterns and ennumeration to achive this but...............all the other validations that come along schema defined datatype date are required........
    Any help.
    Regards,
    Aru

    Hi,
    I meant this...........
    <xs:element name="ContractDt" nillable="true">
              <xs:simpleType>
                   <xs:union>
                        <xs:simpleType>
                             <xs:restriction base="xs:date"/>
                        </xs:simpleType>
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:union>
              </xs:simpleType>
         </xs:element>
    Hope my requirement is clear...
    Aru

  • Problems setting up username & password for SQL

    Due to the outstanding advice I recieved from this excellent forum, I have managed to overcome my first problem with declaring a new Class.
    This leads me to request help with my next biggest problem:
    Setting up a user GUI that takes a "username" & "password" that will be used to access a password protected database.
    I am a simple bloke, with simple thought processes, so please, go easy on me...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    public class DBQuery1 {
         String username = "" , password = "";
         public static void main(String[] arguments) {
              PassDB UPass = new PassDB();
              String data = "jdbc:odbc:JavaTestDataBase";
              try {
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   Connection conn = DriverManager.getConnection(data, "" + username, "" + password);
                   Statement st = conn.createStatement();
                   ResultSet rec = st.executeQuery(
                        "SELECT Title, ContactID, First, Last, Dear FROM Contacts "
                        + "WHERE (Title='Mr') ORDER BY ContactID");
              /*     ResultSet rec2 = st.executeQuery(
                        "SELECT Subject, ContactID FROM Calls "
                        + "WHERE (Subject Is Not Null) ORDER BY ContactID");
              System.out.println("\nFirst Name\tSurname\t\tNick Name\t\tSubject\n");
              while(rec.next()) {
                   System.out.println(rec.getString(3) + "\t\t" + rec.getString(4) + "\t\t" + rec.getString(5) /* + rec2.getString(1) */ );
              st.close();
              catch (SQLException s) {
                   System.out.println("SQL Error: " + s.toString() + " " + s.getErrorCode() + " " + s.getSQLState());
              catch (Exception e) {
                   System.out.println("Error: " + e.toString() + e.getMessage());
    class PassDB extends javax.swing.JFrame implements ActionListener {
         String username = "", password = "";
         JTextField uname = new JTextField(10);
         JTextField pword = new JTextField(10);
         // JPasswordField pword = new JTextField(10);
         PassDB() {
              super("duBe's database logon");
              setSize(220, 160);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              JPanel pane = new JPanel();
              JLabel unameLabel = new JLabel ("Username: ");
              JLabel pwordLabel = new JLabel ("Password: ");
              JButton submit = new JButton("OK");
              submit.addActionListener(this);
              pane.add(unameLabel);
              pane.add(uname);
              pane.add(pwordLabel);
              pane.add(pword);
              pane.add(submit);
              setContentPane(pane);
              setVisible(true);
         public void actionPerformed(ActionEvent evt) {
              PassDB clicked = (PassDB)evt.getSource();
              username = uname.getText();
              password = pword.getText();
    This code generates two errors, stating:
    C:\Java_progs>javac DBQuery1.java
    DBQuery1.java:14: non-static variable username cannot be referenced from a static context
    Connection conn = DriverManager.getConnection(data, "" +
    username, "" + password);
    ^
    DBQuery1.java:14: non-static variable password cannot be referenced from a static context
    Connection conn = DriverManager.getConnection(data, "" +
    username, "" + password);
                    ^
    2 errors*****************************
    The code works when I remove the reference to the variables "username" & "password" in Connection "conn" call & replace them with the actual username & password, but this is not exactly what I was after. I was hoping to make the program responsive to each individual user, not set in code.
    I also would like to make the program pause after the call in "main" to "PassDB" to wait for "PassDB" to exit before continuing.
    I would also like to make "PassDB" destroy itself after the "OK" button is pressed & the "username" & "password" set.
    If that isn't enough for you, I would really like the program to search 2 different database tables, return their values & compare them to be sure that they are the same.
    When I try & search 2 different tables, as in:
    ResultSet rec = st.executeQuery(
                        "SELECT Title, ContactID, First, Last, Dear FROM Contacts "
                        + "WHERE (Title='Mr') ORDER BY ContactID");
                   ResultSet rec2 = st.executeQuery(
                        "SELECT Subject, ContactID FROM Calls "
                        + "WHERE (Subject Is Not Null) ORDER BY ContactID")javac tells me that "ResultSet" is set to null 0
    As always, I am extremely appreciative of any assistance you are able to offer.
    Kind regards
    duBedat
    [email protected]

    This is where I'm at now:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    public class DBQuery {
         static String username = "" ;
         static String password = "" ;
         public static void main(String[] arguments) {
         PassDB UPass = new PassDB();
         String data = "jdbc:odbc:JavaTestDataBase";
         try {
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              Connection conn = DriverManager.getConnection(data, "" + DBQuery.username, "" + DBQuery.password);
              Statement st = conn.createStatement();
              ResultSet rec = st.executeQuery(
              "SELECT Title, ContactID, First, Last, Dear FROM Contacts "
              + "WHERE (Title='Mr') ORDER BY ContactID");
              /*     ResultSet rec2 = st.executeQuery(
                   "SELECT Subject, ContactID FROM Calls "
                   + "WHERE (Subject Is Not Null) ORDER BY ContactID");
              System.out.println("\nFirst Name\tSurname\t\tNick Name\t\tSubject\n");
              while(rec.next()) {
                   System.out.println(rec.getString(3) + "\t\t" + rec.getString(4) + "\t\t" + rec.getString(5) /* + rec2.getString(1) */ );
              st.close();
         catch (SQLException s) {
              System.out.println("SQL Error: " + s.toString() + " " + s.getErrorCode() + " " + s.getSQLState());
         catch (Exception e) {
              System.out.println("Error: " + e.toString() + e.getMessage());
    class PassDB extends javax.swing.JFrame implements ActionListener {
         static boolean getOut = false;
         JTextField uname = new JTextField(10);
         JTextField pword = new JTextField(10);
         // JPasswordField pword = new JTextField(10);
         public PassDB() {
              super("duBe's database logon");
              setSize(220, 160);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              JPanel pane = new JPanel();          
              JLabel unameLabel = new JLabel ("Username: ");
              JLabel pwordLabel = new JLabel ("Password: ");
              JButton submit = new JButton("OK");
              submit.addActionListener(this);
              pane.add(unameLabel);
              pane.add(uname);
              pane.add(pwordLabel);
              pane.add(pword);
              pane.add(submit);
              setContentPane(pane);
              while(getOut == false)
                   setVisible(true);                         
         public void actionPerformed(ActionEvent evt) {
              PassDB clicked = (PassDB)evt.getSource();
              DBQuery.username = uname.getText();
              DBQuery.password = pword.getText();
              getOut = true;               
    }          Any advice is greatly appreciated
    duBe

  • Problems setting up an NFS server

    Hi everybody,
    I just completed my first arch install. :-)
    I have a desktop and a laptop, and I installed Arch on the desktop (the laptop runs Ubuntu 9.10). I had a few difficulties here and there, but I now have the system up and running, and I'm very happy.
    I have a problem setting up an NFS server. With Ubuntu everything was working, so I'm assuming that the Ubuntu machine (client) is set-up correctly. I'm trying to troubleshoot the arch box (server) now.
    I followed this wiki article: http://wiki.archlinux.org/index.php/Nfs
    Now, I have these problems:
    - when I start the daemons, I get:
    [root@myhost ~]# /etc/rc.d/rpcbind start
    :: Starting rpcbind [FAIL]
    [root@myhost ~]# /etc/rc.d/nfs-common start
    :: Starting rpc.statd daemon [FAIL]
    [root@myhost ~]# /etc/rc.d/nfs-server start
    :: Mounting nfsd filesystem [DONE]
    :: Exporting all directories [BUSY] exportfs: /etc/exports [3]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.1/24:/home".
    Assuming default behaviour ('no_subtree_check').
    NOTE: this default has changed since nfs-utils version 1.0.x
    [DONE]
    :: Starting rpc.nfsd daemon [FAIL]
    - If I mount the share on the client with "sudo mount 192.168.1.20:/home /media/desktop", IT IS mounted but I can't browse it because I have no privileges to access the home directory for the user.
    my /etc/exports looks like this:
    # /etc/exports: the access control list for filesystems which may be exported
    # to NFS clients. See exports(5).
    /home 192.168.1.1/24(rw,sync,all_squash,anonuid=99,anongid=99))
    /etc/conf.d/nfs-common.conf:
    # Parameters to be passed to nfs-common (nfs clients & server) init script.
    # If you do not set values for the NEED_ options, they will be attempted
    # autodetected; this should be sufficient for most people. Valid alternatives
    # for the NEED_ options are "yes" and "no".
    # Do you want to start the statd daemon? It is not needed for NFSv4.
    NEED_STATD=
    # Options to pass to rpc.statd.
    # See rpc.statd(8) for more details.
    # N.B. statd normally runs on both client and server, and run-time
    # options should be specified accordingly. Specifically, the Arch
    # NFS init scripts require the --no-notify flag on the server,
    # but not on the client e.g.
    # STATD_OPTS="--no-notify -p 32765 -o 32766" -> server
    # STATD_OPTS="-p 32765 -o 32766" -> client
    STATD_OPTS="--no-notify"
    # Options to pass to sm-notify
    # e.g. SMNOTIFY_OPTS="-p 32764"
    SMNOTIFY_OPTS=""
    # Do you want to start the idmapd daemon? It is only needed for NFSv4.
    NEED_IDMAPD=
    # Options to pass to rpc.idmapd.
    # See rpc.idmapd(8) for more details.
    IDMAPD_OPTS=
    # Do you want to start the gssd daemon? It is required for Kerberos mounts.
    NEED_GSSD=
    # Options to pass to rpc.gssd.
    # See rpc.gssd(8) for more details.
    GSSD_OPTS=
    # Where to mount rpc_pipefs filesystem; the default is "/var/lib/nfs/rpc_pipefs".
    PIPEFS_MOUNTPOINT=
    # Options used to mount rpc_pipefs filesystem; the default is "defaults".
    PIPEFS_MOUNTOPTS=
    /etc/hosts.allow:
    nfsd: 192.168.1.0/255.255.255.0
    rpcbind: 192.168.1.0/255.255.255.0
    mountd: 192.168.1.0/255.255.255.0
    Any help would be very appreciated!

    Thanks, I finally got it working.
    I realized that even though both machines had the same group, my Ubuntu machine (client) group has GID 1000, while the Arch one has GID 1001. I created a group that has GID 1001 on the client, and now everything is working.
    I'm wondering why my Arch username and group both have 1001 rather than 1000 (which I suppose would be the default number for the first user created).
    Anyway, thanks again for your inputs.

  • Problems setting up static routing

    HI
    I'm having a problem setting up static routing.  I keep getting the message "invalid static route".   I have an E1550 router and my frimware is up to date.  I have tried a few different gateway addresses ie 192.168.1.1,  127.0.0.1 and my router's address on the net, but I keep getting the same message.  Has anyone else had this problem and been able to fix it?

    I think the E1550 router supports LAN to LAN routing provided that you have two local networks. If you only have a plain modem and the E1550, I believe you can't do Static routing on that type of setup. Found this link that might help: http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=12a84336a124498eb5d6f0204b85191e_17589.xml&pid=80&...

  • Problems Setting Up Developer Users

    I am having a problem setting up developer users and I am trying to determine if I am missing a step or if there is a configuration problem on my staging and production systems.
    What I want to do should be very simple. I want to create a user that can create an application and see the information under the "Application" tab in the Navigator.
    I have created the user using the following steps on 3.0.9.82 for Unix:
    1. Create the user
    2. Make the user a full administrator (rather than end user)
    3. Make the user a member of the portal_developers group
    4. Make the user's default group the portal_developers group
    However, when I do this the user does not see the information under the
    "Application" tab. The only way I can get the user to see the info under the
    "Application" tab is to make him a member of the Portal_administrators
    and/or DBA group. Both my staging and production boxes have the same result.
    Does anyone have any thoughts or suggestions on what might be happening?

    Thank you- I have read through that thread and can see some resonance with my issue.
    My AOL emails work VERY fast with BB, in fact almost simultaneously received on PC & Torch " ping ping!"
    This issue only raised its ugly head when I had 2 Torches replaced by my insurers. 
    Whilst the claim was in process I used a new Curve, loaded from backup on PC to keep emails going and of course phone & web facilities. ( I use the BB to power internet via bluetooth to my PC / laptop when living on a remote island with no phone lines or power supplies)  All was fine. Swapping email accounts took a few minutes with the usual password confirmations for each AOL screenname etc. 
    Then the new Torches came back from insurers, and I tried to swap devices. Phoning & texting is fine. Al data and contacts swap over fine.
    SETUP email accounts.............stymied every time. It says repeatedly that my user name/password is invalid etc etc etc
    Have tried security wipes. Have tried setting up new BB ID & passwords on PC website. All is OK until I try to setup emails on the Torches.  This has used up ridiculous amounts of time- all wasted.
    I love the BB phones and the fast email push......in fact I recently bought a new Sony Xperia Z1 but sent it back because of wifi coverage meant no emails on that superb phone for lots of the time.
    Good old BB I said..........I always get emails wherever I am. ( Rural Scotland has very patchy radio & wifi coverage)  
    Was about to purchase new Z10s just to get a bigger screen, but now I am averse to buying ANY BB phone again because this present mess means I may never get emails set up again.  How nuts is that?
    Many thanks for all help & suggestions..........boy do I need them!!
    Kind wishes from West of Scotland 
    Fair winds and kind landfalls

  • Problems setting up VVSA 6.0 (lookup service adresse)

    Hi,
    I was happy to see VVSA 6.0 released, but i'm having problems setting it up. It keeps saying that the lookup service adresse is not reachable. But I have tried with the VVSA 5.5 and 5.5.1.1 and they work just fine with the lookup service adresse.
    Anyone else having this issue?
    Also trying to check for updates within the appliance failes since the repository is not online at vmware it seems.
    Might not be ready for primetime (like ESXi6).

    If Developer has a separate Oracle Home on your PC, then it has a separate TNSNAMES.ORA file that is uses to connect to the database. If you search for all tnsnames.ora files, you should find the one used by Developer 6.
    Since Enterprise manager works, the tnsnames.ora in your Enterprise Manager's home will have an entry for your server database. You should be able to cut and paste this into the tnsnames.ora file used by Developer, or try copying the E.M. tnsnames.ora file directly.
    John Alexander www.SummitSoftwareDesign.com

  • Problems setting up email account

    Have recently got a blackberry 9300 and having problems setting up my aol email account. 
    Do not know how to fix this problem, can anyone please give advice?

    Hi and Welcome to the Forums!
    Well, a bit more detail than "having problems" might help us just a bit...keep us from guessing, after all. In the meantime, see this:
    http://us.blackberry.com/support/blackberry101/set​up.jsp#tab_tab_email
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Problems Setting up my wireless network with an Xb...

    Hi, I have had some problems setting up my wireless networking.
    I have everything switched on and am able to go online with the laptop and the Xbox with no problems but when I try to share media with the xbox I have problems.
    I have opened the ports specified in the setup from xbox on windows firewall and have no problem connection Via Ethernet cable but when using wireless the xbox cannot detect the laptop.
    I have checked the network map and both xbox and laptop are connected and have enabled sharing and am running sharing software.
    Below is the network map.
    I have also been having problems with BT software, the free virus protection will not install, The desktop help will not launch although it shows up on task manager and the installation disk does not launch correctly it doesn't get past the loading screen.
    I have had a printer on the wireless network and had no problems printing.
    If anyone knows how to resolve this please help.

    I have this same Motorola modem and I just verified that my 802.11n AirPort Express Base Station (AXn) can get Internet access with this modem without any issues.
    When changing ISPs (or networking equipment) it's always a good idea to start from "scratch" in configuring your equipment.
    I would recommend that you do the following as a minimum:
    Power-down the modem, AirPort base station, and computer(s).
    While all of the devices are powered-down, perform a "factory default" reset on the base station. This will get it back to its "out-of-the-box" configuration and make setting it up much easier, especially if you use the "Assist me" process within the AirPort Utility. (ref: Resetting an AirPort Base Station or Time Capsule)
    After the base station resets, go ahead and power it back down.
    Power-up the modem; wait at least 10-15 minutes.
    Power-up the base station; wait at least 5-10 minutes.
    Power-up your computer(s).
    In this basic configuration, computers connected to the base station, either by wire or wireless (as appropriate for the base station type), should now be able to access the Internet through the ISP's modem. Once Internet connectivity has been verified, you can use the AirPort Utility to configure the base station for wireless security and any other desired options.

  • Problems Setting up NFS

    Hi.
    I've been having problems setting up NFS on a LAN at home.  I've read through all the Arch NFS-related threads and looked at (and tried some of) the suggestions, but without success.
    What I'm trying to do is set up an NFS share on a wireless laptop to copy one user's files from the laptop to a wired workstation.  The laptop is running Libranet 2.8.1. The workstation is running Arch Linux with the most up-to-date (as of today) software, including NFS.
    I have the portmap, nfslock, and nfsd daemons running via rc.conf, set to run in that order.
    I've re-installed nfs-utils and set up hosts.deny as follows:
    # /etc/hosts.deny
    ALL: ALL
    # End of file
    and hosts.allow as follows:
    # /etc/hosts.allow
    ALL: 192.168.0.0/255.255.255.0
    ALL: LOCAL
    # End of file
    In other words, I want to allow access on the machine to anything running locally or on the LAN.
    I have the shared directories successfully exported from the laptop (192.168.0.3), but I have not been able to mount the exported directories on the workstation (192.168.0.2).
    The mount command I'm using at the workstation:
    mount -t nfs -o rsize=8192,wsize=8192 192.168.0.3:/exports /exports
    There is an /exports directory on both machines at root with root permissions. There is an /etc/exports file on the NFS server machine that gives asynchronous read/write permissions to 192.168.0.2 for the /exports directory.
    I receive the following message:
    mount: RPC: Program not registered
    This appears to be a hosts.allow/hosts.deny type problem, but I can't figure out what I need to do to make RPC work properly.
    Some additional information, just in case it's helpful:
    This is the result if running rpcinfo:
       program vers proto   port
        100000    2   tcp    111  portmapper
        100000    2   udp    111  portmapper
        100024    1   udp  32790  status
        100024    1   tcp  32835  status
        100003    2   udp   2049  nfs
        100003    3   udp   2049  nfs
        100003    4   udp   2049  nfs
        100003    2   tcp   2049  nfs
        100003    3   tcp   2049  nfs
        100003    4   tcp   2049  nfs
        100021    1   udp  32801  nlockmgr
        100021    3   udp  32801  nlockmgr
        100021    4   udp  32801  nlockmgr
        100021    1   tcp  32849  nlockmgr
        100021    3   tcp  32849  nlockmgr
        100021    4   tcp  32849  nlockmgr
        100005    3   udp    623  mountd
        100005    3   tcp    626  mountd
    Running ps shows that the following processes are running:
    portmap
    rpc.statd
    nfsd
    lockd
    rpciod
    rpc.mountd
    Thanks for any help here!
    Regards,
    Win

    Hi ravster.
    Thanks for the suggestions. I had read the Arch NFS HowTo and did as you suggested get rcpinfo for the server machine. The Libranet NFS server is configured rather different since the NFS daemons are built into the default kernel.
    Since I needed to complete the transfer immediately, I gave up for now trying to set up NFS and used netcat (!) instead to transfer the files from the Libranet laptop to the Arch workstation. The laptop will be converted to Arch Linux soon so I think I'll be able to clear things up soon.  I haven't had any problems setting up NFS with homogeneous (i.e., all Arch or all Libranet) computer combinations.
    Thanks again.
    Win

Maybe you are looking for

  • 27'  iMac wont detect Display

    Hey folks, I'm using the 27'' iMac Intel i5 and i have the following issue it wont detect my dell S2009Wb display, I bought the original adapter from apple from the mini display port to dvi. any suggestions? or experiences please help! thanks guys!

  • HP S2031 Monitor connect to my Mac

    I connect a HP monitor using a Mini DP to DVI adaptor. Work one time and after that my mac dont recognize the monitor. There is something that I can do?

  • HT4528 cant' hear sound on my  i phone 5

    I cannot hear the sounds on the ip hone 5

  • Problem with a Timer (Java.util)

    Hello guys, I have a small problem with Java timer. The problem is I wanne do some task let's say after 5 seconds, so I created a timer and set its delay to 5000 milli seconds and run my program to see that the task is well performed but the program

  • Iphone 6 app store slow download and update over wifi

    Just recently noticed, my iphone 6 app store takes more than 20 min to update and download apps with wifi. With my carrier's LTE downloads and updates are fine. I've done speed tests as well on my iphone using home wifi, with good results. Surfing th