Mysql CLASS on Sun ONE, need help!

I am trying to set the classpath for Mysql on my computer, to develop a application in hava with mysql.
And I did exactly that:
"Put mysql-connector-j-2.0.14-bin.jar in your classpath, either by adding the FULL path to it to your CLASSPATH enviornment variable, or putting it in $JAVA_HOME/jre/lib/ext."
I putted in the $JAVA_HOME/jre/lib/ext. directory.
I got that from the readme file that comes with the mysql file that I downloaded from the mysql.com website.
But wherener I type "import[space]" it shows the list of the possibles packeges to import, but it does not shows the mysql packeges. I am using SUN ONE 4 CE. PLEASE somebody help!!!
I am on windows XP.
Thanks in advanced...

Connection connection = null;
    try {
        // Load the JDBC driver
        String driverName = "org.gjt.mm.mysql.Driver"; // MySQL MM JDBC driver
        Class.forName(driverName);
        // Create a connection to the database
        String serverName = "localhost";
        String mydatabase = "mydatabase";
        String url = "jdbc:mysql://" + serverName +  "/" + mydatabase; // a JDBC url
        String username = "username";
        String password = "password";
        connection = DriverManager.getConnection(url, username, password);
    } catch (ClassNotFoundException e) {
        // Could not find the database driver
    } catch (SQLException e) {
        // Could not connect to the database
    }This will give you your connection, and from there do you know how
to execute queries??

Similar Messages

  • Setup MySQL datasource for Sun ONE Studio

    Hello all,
    I've tried to post this message on the Sun ONE studio forum, however, there were compilation errors with JSP pages. As I needed the answer urgently, I decided to get some help here.
    I've successfully made connection to MySQL database during the CMP development. However, when I tried to run it, it said the JNDI Datasource can't be blank and provide username & password if necessary. I went back and gave it a name as jdbc/MySQL, and also provided the username & password. I then reran the app, and I got the following error
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: Unable to get JDBC DataSource for CMP ....
    I've mounted the mysql.jar and hacked some other things to no success. Please help.
    Thanks & regards,
    Thinh

    Hi,
    Try validating your data source using
    http://developer.iplanet.com/tech/tools/dbping_overview.jsp
    Get back in case of any issues

  • Trouble with MySQL/PHP5... Need Help!

    I uncommented the PHP line in Apache. Apache is running sites in Sites folder. PHP pages are running on Apache server.
    MySQL5 will not work. The system preferences add-on is not functional. The GUI services to turn on and off MySQL causes errors, and can not properly turn on and off the database. In Dreamweaver CS3, every time I try to connect a PHP page to the local MySQL database, the program gives me either warnings that it can't find a right file in the right place, and then crashes.... or after much trying to fix it, that it can't connect through the socket '/var/mysql/mysql.sock'(2). I simply removed MySQL from the hard drive all together.
    Server is running and working. PHP appears to be working.
    Any help setting up a development environment with APACHE/PHP5/MySQL5 would be much appreciated... I'm at a loss at this point. I set this up so easily on Tiger, and now I can't get it to work.

    Hi There,
    To get MySQL working on Leopard do this, until MySQL fixes their PrefPane and a few other things.
    http://discussions.apple.com/thread.jspa?messageID=5645748&#5645748
    sudo /usr/local/mysql/bin/safe_mysqld
    close Terminal, then open it again and put in these two...
    sudo mkdir /var/mysql/
    sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
    Restart Apache
    To get PHP working (Apple's Version) un-comment the line the PHP line in your conf file.
    private/etc/apache2/httpd.conf
    If your using Marc Liyanage package, you and rest of us will have to wait until he updates it. If you don't need all the extensions (GD, MCrypt, Etc..) then use Apple's version, its latest release of PHP. Otherwise, we all have to wait until Marc updates PHP installer. Hope this helps.

  • What to buy one need help

    I want to buy one but my brother just got one and he cant use gps or safari web browser or anything that needs wifi and that is a big reason why I want one. he got it brand new and just synced some music on it what does he have to do to use the browser and gps? and is there only certain places it will work? or do you have to download something first? he doesnt have a computer at home so he was going to use that for the internet. can someone please help me I want to buy but If I only get to use the browser in certain shops or airports and cant use it just anywhere then I dont think it is worth it so can you tell me how to work the browser and youtube and if it cost anything.

    1. iPod touches can use Calendar, Contacts, Clock, Calculator, Settings, Music, Notes, Videos, and Photos WITHOUT any wireless connection.
    2. iPod touches need to have a wireless connection for Safari, YouTube, Mail, iTunes Wi-Fi Music Store, Maps, Weather, and Stocks.
    3. If you go to a place (like some hotels, Starbucks, etc.) that have a wireless connection, you may or may not have to pay. It depends on the wireless provider. Some public wireless networks you have to set up an account to access wireless.
    4. You cannot access any of the applications listed in 2 without a wireless network. This means if you are not at a location with wireless set up, you cannot access any of the applications in 2.
    5. If you are in a place outside a wireless network, you can't access any of those applications. (If you don't have a wireless network set up @ home, you can't access the internet)
    6. All the applications (including YouTube) are FREE, unless you buy a song on iTunes. Looking @ the top 10s or anything does not cost any money.
    7. There is nothing that you can (legally) download to access wi-fi anywhere your iPod touch is.

  • New ipod need help with songs from old one NEED HELP!!!!

    I got a new ipod nano 3rd gen. but it wont let me take all of my old songs from my old ipod(nano 1st gen) and put them on my new one! I dont want to lose my songs so PLEASE HELP!!

    When I did that on my old ipod and it said doing so will delete all the songs on it and replace it with my library. When I did it on my new ipod it just put the songs that was already in that playlist back on the ipod, not the songs that i need from the old one.

  • How to make a column values as fields - Generic one needed -help me....!

    Hi,
    There are some data dictionary views to get the list of column names and their id.
    eg: all_tab_columns
    I am querying the fiels for EMP table..
    Select column_name,column_id from all_tab_columns where table_name='EMP' order by column_id;
    column Name column_id
    EMPNO 1
    ENAME 2
    SAL 3
    My reuuirement is nothing but the values of COLUMN_NAME should be displayed as an individual field that is..
    EMPNO,ENAME,SAL
    Likewise, it should react for all tables that is the values should transformed into fields..
    Please help me out in this regard..
    Thanks in advance...

    The reason why i need the generic query to frame the column values into individual fiels is , the explicit cursor can not be used for binding sql statments and moreover i want to create the record type based on the explicit cursor due to some requirement in creating generic procedure..
    So, I need a help for creating column values individual fields meaning
    select column_name from all_tab_columns where table_name='EMP'
    COLUMN_NAME
    EMPNO
    ENAME
    SAL
    the answer should be
    empno ename sal
    Pleaese help me ...

  • Wrong forum, but can't access correct one - need help with Safari

    I'm sorry to post this here, but the link to the Safari discussion forum is broken - I've tried it about 10 times!
    I've been having trouble with Safari 1.3, which quit every time I navigated to a page using a certain type of code (I don't know what it was, maybe Java or Flash?) Anyway, I downloaded the Safari 3 Universal version in the hope of improving it, but unfortunately that has completely killed off both Safari itself and Mail. I couldn't even use Firefox or Internet Explorer, although other programs such as Word and Photoshop were working fine. Trashing Safari and everything I could find related to it meant that Firefox would work (I'm using that now), but I still can't start Mail. I assume Mail needs Safari to be installled in order to work?
    I've tried to download Safari 1 again, but can only find links to download the 1.3 Updater, not the program itself. Of course, the Updater won't install because there's no previous version to load it onto. Can anyone help me with a suggestion as to where I go from here, please? I'd be hugely grateful, I don't mind not having Safari but I do really need to use Mail.
    Thank you!
    - Kitty

    There are many, many millions of defective, nonstandard web sites, as a brody points out. You could, if you wished, make a crusade of asking their developers to make them accessible in every antique web browser: a crusade for which you would be rewarded with a brody's undying admiration, most of those incompetent website developers' annoyance, and nothing else.
    If instead you would rather just visit the sites and see what you can see of them, use Camino or Opera — the only up-to-date browsers that will run in OS X 10.3.9. Mozilla FireFox 2.0.20 will indeed run in your OS version, but it "is no longer supported and contains known security vulnerabilities" according to the Mozilla website. The more recent updates of FireFox (3.0 through 3.0.10) require OS X 10.4 or better.

  • HP Deskjet Ink Advantage 2645 All-In-One : Need Help

    Newly bought HP Deskjet Ink Advantage 2645 All-In-One printer and couldnt dial any numbers to fax a document. After restart the printer, it shows error code: 0XC4EB11C9. Tried to restart many times but still cannot fix it. Anyone can help to solve this matter?

    Welcome to the forums amylicious21
    I saw your post about the error code you are seeing on your Deskjet Ink Advantage 2645. This code is an Ink System Failure code.
    Please check out this guide, try the step and if that does not help, call HP to inquire about a replacement unit.
    Ink System Failure
    If you are calling within North America, the number is 1-800-474-6836 and for all other regions: click here.
    Have a great day
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • WRT54GL shares internet to all computers except one - need help!

    Hello,
    I've experienced a problem with my WRT54GL device. I've set up it and all was working well both foe Wi-Fi and Ethernet connections. But when I had tried to connect my parents' ASUS notebook I saw that it could connect to the router (it gets address through DHCP, sees the home network), but only to the Local Network - No Internet connection.
    And I just can't get through it - how it can be, that all notebooks and a desktop can access to the internet, but the one - can not?
    Please help to resolve this.
    Thanks. 
    Solved!
    Go to Solution.

    "ipconfig /all"
    Autoconfiguration Enabled . . . . : Yes
    Windows IP Configuration
    Host Name . . . . . . . . . . . . : HOME-NOTE
    Primary Dns Suffix. . . . . . . :
    Node Type . . . . . . . . . . . . : Hybrid
    IP Routing Enabled. . . . . . . . : No
    WINS Proxy Enabled. . . . . . . . : No
    Wireless LAN adapter Wireless Network Connection:
    Connection-specific DNS Suffix. :
    Description . . . . . . . . . . . : Atheros AR5007EG Wireless Network Adapter
    Physical Address. . . . . . . . . : 00-15-AF-49-6D-30
    DHCP Enabled. . . . . . . . . . . : Yes
    Autoconfiguration Enabled . . . . : Yes
    Link-local IPv6 Address . . . . . : fe80::70da:cd7e:2830:2b5c%10(Preferred)
    IPv4 Address. . . . . . . . . . . : 192.168.1.103(Preferred)
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Lease Obtained. . . . . . . . . . : 28 july 2011 11:21:35
    Lease Expires . . . . . . . . . . : 29 july 2011 11:21:34
    Default Gateway . . . . . . . . . : 192.168.1.1
    DHCP Server . . . . . . . . . . . : 192.168.1.1
    DNS Servers . . . . . . . . . . . : 192.168.1.1
    NetBIOS over Tcpip. . . . . . . . : Enabled
    Tunnel adapter Local Area Connection* 7:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix. :
    Description . . . . . . . . . . . : Microsoft ISATAP Adapter
    Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
    DHCP Enabled. . . . . . . . . . . : No
    Autoconfiguration Enabled . . . . : Yes
    Tunnel adapter Local Area Connection* 6:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix. :
    Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
    Physical Address. . . . . . . . . : 02-00-54-55-4E-01
    DHCP Enabled. . . . . . . . . . . : No

  • Retrieve the class path!! need help

    Hi all
    I tried to retrieve the class path using the below method:
    URL srcUrl = ClassLoader.getSystemResource(fileName)
    Since the class path has some space in it, this srcUrl seems to be wrong
    the returned value would look like this, "%20" represnts the spaces in the path. So is there a way to avoid this, and to return the path correctly?
    D:\PROJECT\ReportDesigner\Run%20report%20designer%20from%20a%20share\
    thanks in advance
    madumm

    File srcDir = new File(srcUrl.getFile());Well you just can't do that, can you? URL.getFile() returns the filename part of the URL, but it's still URL-encoded. You have to convert each %20 to a space, and do a few other possible transformations as well. See java.net.URLDecoder.

  • MySQL & Sun ONE studio problem

    hello all,
    It seemed like I've got the data source & database driver stuff setup to work with MySQL database in Sun ONE studio. However, when I tried to run the helloworld_TestApp (CMP App), I've got the SQL syntax error. I tried to look at the sun-j2ee-ri.xml, and it looked just fine to me.. please help.
    Here is the XML descriptor
    <?xml version="1.0" encoding="UTF-8"?>
    <j2ee-ri-specific-information>
    <server-name></server-name>
    <rolemapping/>
    <web>
    <display-name>helloworld_TestApp</display-name>
    <servlet>
    <servlet-name>dispatch</servlet-name>
    </servlet>
    <servlet>
    <servlet-name>error</servlet-name>
    </servlet>
    <servlet>
    <servlet-name>viewer</servlet-name>
    </servlet>
    <context-root>helloworld_TestApp</context-root>
    <ejb-ref>
    <ejb-ref-name>ejb/TestedEJB</ejb-ref-name>
    <jndi-name>helloworld</jndi-name>
    </ejb-ref>
    </web>
    <enterprise-beans>
    <unique-id>1</unique-id>
    <ejb>
    <ejb-name>helloworld</ejb-name>
    <jndi-name>helloworld</jndi-name>
    <ejb20-cmp>
    <sql-statement>
    <operation>loadRow</operation>
    <sql>SELECT "lastname" FROM "helloworld" WHERE "firstname" = ? </sql>
    </sql-statement>
    <sql-statement>
    <operation>storeRow</operation>
    <sql>UPDATE "helloworld" SET "lastname" = ? WHERE "firstname" = ? </sql>
    </sql-statement>
    <sql-statement>
    <operation>deleteRow</operation>
    <sql>DELETE FROM "helloworld" WHERE "firstname" = ? </sql>
    </sql-statement>
    <sql-statement>
    <operation>deleteTable</operation>
    <sql>DROP TABLE "helloworld"</sql>
    </sql-statement>
    <sql-statement>
    <operation>findByPrimaryKey</operation>
    <sql>SELECT "firstname" FROM "helloworld" WHERE "firstname" = ? </sql>
    </sql-statement>
    <sql-statement>
    <operation>createRow</operation>
    <sql>INSERT INTO "helloworld" ( "firstname" , "lastname" ) VALUES ( ? , ? )</sql>
    </sql-statement>
    <sql-statement>
    <operation>createTable</operation>
    <sql>CREATE TABLE "helloworld" ("firstname" VARCHAR(255) NOT NULL , "lastname" VARCHAR(255), CONSTRAINT "pk_helloworl" PRIMARY KEY ("firstname") )</sql>
    </sql-statement>
    <create-table-deploy>true</create-table-deploy>
    <delete-table-undeploy>false</delete-table-undeploy>
    </ejb20-cmp>
    <principal>
    <name></name>
    </principal>
    <ior-security-config>
    <transport-config>
    <integrity>supported</integrity>
    <confidentiality>supported</confidentiality>
    <establish-trust-in-target>supported</establish-trust-in-target>
    <establish-trust-in-client>supported</establish-trust-in-client>
    </transport-config>
    <as-context>
    <auth-method>username_password</auth-method>
    <realm>default</realm>
    <required>true</required>
    </as-context>
    <sas-context>
    <caller-propagation>supported</caller-propagation>
    </sas-context>
    </ior-security-config>
    </ejb>
    <cmpresource>
    <ds-jndi-name>jdbc/MySQL</ds-jndi-name>
    <default-resource-principal>
    <name>root</name>
    <password>root</password>
    </default-resource-principal>
    </cmpresource>
    </enterprise-beans>
    </j2ee-ri-specific-information>
    And here is the error message:
    The exception java.rmi.ServerException was thrown when invoking findByPrimaryKey with parameters:
    thinh
    Following is the stack trace:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: nested exception is: java.sql.SQLException: Syntax error or access violation: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '"helloworld" WHERE "firstname" = 'thinh'' at line 1; nested exception is: java.sql.SQLException: Syntax error or access violation: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '"helloworld" WHERE "firstname" = 'thinh'' at line 1 at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.wrapException(Util.java:345) at javax.rmi.CORBA.Util.wrapException(Util.java:277) at ..
    ...more and more..

    Where are you running your application? I assume you
    are running your application on RI. Are you running
    on RI or S1AS?I am running my application on R1, is there a problem with it? can the S1AS solve the problem?
    Thanks & regards,
    Tim

  • Update server classes without restarting sun one web server 6.1

    hi,
    I'm facing a problem in updating server classes on sun one web server 6.1. i did not deploy any application and we are using simple jdbc+jsp approach.i write a class for db connections and now whenever i made some changes in it i must have to restart web server for changes to take effect. I also delete class files from classcache folder but it doesn't work.
    my class is placed on /opt/ and this path is also placed in web server class paths.
    i do not want to restart web server again and again. can some one tell me how to solve this problem.
    Regards,
    Kashif.

    if you just change your jsp files, you don't need to restart WebServer. WS will automatically recompile your jsps when it find the changes.
    You may also use reconfig command to reload server.

  • Connecting to MySQL from Sun One Studio

    Hi,
    I am trying to connect to the MySQL from the Sun One Studio 5. I followed these steps.
    1. I downloaded the MySQL software and installed on my local computer, it was successful.
    2. I got the drivers [b][b][b]mysql-connector-java-3.0.8-stable-bin.jar and placed it in the <stdudio5>/lib/ext/ directory.
    3. And I successfully got through that one also, and in the database section it showed me the icon for connecting to mysql database. I gave the url, username, and password. It worked fine.
    4. Then I created the connection pool, JDBC resource, and Persistence manager for my server instance. It was also successful.
    5. When I built a cmp bean accessing the table in mySQL database, it is giving me these errors.
    If you notice these error, it is asking for vendor type. But i don't have any option to choose the vendor type when i configured the database resources.
    Can soem body suggest some other method and clear this error. I am struggling with this since a week.
    Thank you.
    [[b]09/Oct/2003:11:12:31] WARNING ( 3476): Cannot get database metadata: database product name.
    java.sql.SQLException: com.sun.enterprise.repository.J2EEResourceException
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.jdbc2.optional.MysqlDataSource
    at com.sun.enterprise.resource.SystemJdbcDataSource.internalGetConnection(SystemJdbcDataSource.java:252)
    at com.sun.enterprise.resource.SystemJdbcDataSource.getConnection(SystemJdbcDataSource.java:154)
    at com.sun.jdo.spi.persistence.support.sqlstore.ejb.TransactionHelperImpl.getConnection(TransactionHelperImpl.java:171)
    at com.sun.jdo.spi.persistence.support.sqlstore.ejb.EJBHelper.getConnection(EJBHelper.java:169)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getDBName(SQLPersistenceManagerFactory.java:781)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getFromPool(SQLPersistenceManagerFactory.java:709)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:598)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:770)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:660)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl.jdoGetPersistenceManager(JobinfoBean_1956195957_ConcreteImpl.java:1479)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl.ejbFindByTitle(JobinfoBean_1956195957_ConcreteImpl.java:541)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl_RemoteHomeImpl.findByTitle(JobinfoBean_1956195957_ConcreteImpl_RemoteHomeImpl.java:175)
    at JAdminEntityBeans._JobinfoHome_Stub.findByTitle(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.forte4j.j2ee.ejbtest.webtest.InvocableMethod$MethodIM.invoke(InvocableMethod.java:231)
    at com.sun.forte4j.j2ee.ejbtest.webtest.EjbInvoker.getInvocationResults(EjbInvoker.java:96)
    at com.sun.forte4j.j2ee.ejbtest.webtest.DispatchHelper.getForward(DispatchHelper.java:189)
    at jasper.dispatch_jsp._jspService(_dispatch_jsp.java:136)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
    at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
    at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    [09/Oct/2003:11:12:31] INFO ( 3476): Bean Jobinfo method ejbFindByTitle: problems running JDOQL query.
    com.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to get the vendor type for the data store.
    NestedException: java.sql.SQLException: com.sun.enterprise.repository.J2EEResourceException
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.jdbc2.optional.MysqlDataSource
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getDBName(SQLPersistenceManagerFactory.java:802)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getFromPool(SQLPersistenceManagerFactory.java:709)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:598)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:770)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:660)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl.jdoGetPersistenceManager(JobinfoBean_1956195957_ConcreteImpl.java:1479)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl.ejbFindByTitle(JobinfoBean_1956195957_ConcreteImpl.java:541)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl_RemoteHomeImpl.findByTitle(JobinfoBean_1956195957_ConcreteImpl_RemoteHomeImpl.java:175)
    at JAdminEntityBeans._JobinfoHome_Stub.findByTitle(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.forte4j.j2ee.ejbtest.webtest.InvocableMethod$MethodIM.invoke(InvocableMethod.java:231)
    at com.sun.forte4j.j2ee.ejbtest.webtest.EjbInvoker.getInvocationResults(EjbInvoker.java:96)
    at com.sun.forte4j.j2ee.ejbtest.webtest.DispatchHelper.getForward(DispatchHelper.java:189)
    at jasper.dispatch_jsp._jspService(_dispatch_jsp.java:136)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
    at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
    at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

    The AS7 error suggests that you have not set up the server startup classpath to include the driver jar. The steps to do this are included in the article mentioned in Chris's reply, namely:
    http://developers.sun.com/tools/javatools/tips/tip03-08-22.html
    Note especially the part starting with Step 3 under the section "Enabling the JDBC Driver in the IDE."
    -Jane

  • Need help in logging JTDS data packets

    Hi All,
    I m having web application which uses SQL Server database.
    I have to find out some problems in database connection for that there is need to log the jtds data packets.
    I have tried to use class net.sourceforge.jtds.jdbc.TdsCore but in constructor of TdsCore class there are two parameters needed one is ConnectionJDBC2 and another is SQLDiagnostic.
    I have tried a lot but it did not allow me to import class *SQLDiagnostic*.
    I need help in logging JTDS data packets. If there are any other ways or any body having any idea about logging JTDS data packets/SQLDiagnostic.
    Please reply it is urgent...!!
    Thanks in advance......!!

    if you want to use log4j then,
    in your project create a file called log4j.properties and add this
    # Set root logger level to INFO and its only appender to ConsoleOut.
    log4j.rootLogger=INFO,ConsoleOut
    # ConsoleOut is set to be a ConsoleAppender.
    log4j.appender.ConsoleOut=org.apache.log4j.ConsoleAppender
    # ConsoleOut uses PatternLayout.
    log4j.appender.ConsoleOut.layout=org.apache.log4j.PatternLayout
    log4j.appender.ConsoleOut.layout.ConversionPattern=%-5p: [%d] %c{1} - %m%n
    log4j.logger.org.apache.jsp=DEBUG
    #Addon for
    com.sun.faces.level=FINEGo to your class and add this line
    private static final Logger logger = Logger.getLogger("classname");and then you can use
    logger.info();
    logger.error();
    methods

  • Need help with sun one and xml

    I have installed the Java Web Services Developer Pack. I am also using Sun One ide. I am trying to import the dom package. When ever i use "import org.", in the Sun One ide to lookup the packages, no packages come up for w3c.dom. I have tried to just use "import org.w3c.dom;", but i get an error when i try to instantiate a DOMImplementation. The JWSDP says that you do not need to register any classpaths. Any help would be much appreciated.

    I've noticed that no packages come up either.
    Try:
    import org.w3c.dom.*;
    to import all the classes, or be more specific:
    import org.w3c.dom.Node;
    (this is better coding style as you know exactly what classes you are using)
    Hope this helps
    Chalotte

Maybe you are looking for