MySQL datasource conection error

Hi,
I also have troubles connecting coldfusion to MySQL 5.
I read the technote on how to connect it using jdbc.
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6ef0253
However, I don't quite understand it all. Maybe somebody can
help me with the following question:
1* If you see the following step:
# Enter the JDBC URL:
jdbc:mysql://[host]:[port]/[database]
Do I have to do this like:
jdbc:mysql://[localhost]:[3306]/[databasename]
Or like this:
jdbc:mysql://localhost:3306/databasename
2* And how to enter the driver class (Do I use the exact
example?):
com.mysql.jdbc.Driver
3* Another question is:
Does the above procedure has any consequences for other
datasource connections on the server? [SQL]
Thank you in advance
Regards,
Kabbi

jdbc:mysql://localhost:3306/databasename
Ken Ford
Adobe Community Expert
Fordwebs, LLC
http://www.fordwebs.com
"kabbi~thkek" <[email protected]> wrote in message
news:epndrh$j1d$[email protected]..
> Hi,
>
> I also have troubles connecting coldfusion to MySQL 5.
>
> I read the technote on how to connect it using jdbc.
>
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6ef0253
> However I don't quite understand it all. Maybe somebody
can help me with the
> following question:
>
> If you see the following step:
> # Enter the JDBC URL:
> jdbc:mysql://[host]:[port]/[database]
>
> Do I have to do this like:
> jdbc:mysql://[localhost]:[3306]/[databasename]
>
> Or like this:
>
> jdbc:mysql://localhost:3306/databasename
>
> Thank you in advance
>
> Regards,
>
> Kabbi
>

Similar Messages

  • Problems creating MySQL Datasource in OC4J

    I was recently tasked with creating a MySQL datasource in my development OC4J container (running through Eclipse, but that's irrelevant). I searched for and found this page: http://www.oracle.com/technology/products/jdev/tips/duff/mysql_and_oc4j3.html which tells me how to do this.
    I searched for and found the Datasource class jar file: mysql-connector-java-3.0.17-ga-bin.jar, installing it in the ORACLE_HOME/applib directory of my container.
    I then fired up the container, and accessed the ascontrol app to add the Datasource (via Administration/JDBC options), and ran into a few problems:
    After entering the "Create Datasource" menu, I filled in the appropriate values for the JNDI name, class name of the Datasource, URL of the database, username and password. When I went to test the connection, I received an error that the Datasource class could not be created, yet in the error message it showed me where the Datasource class was (in which jar), so obviously the container knew about the jar.
    After much playing around, I determined that the ascontrol app itself was the issue. In the orion-application.xml file for the ascontrol found in ORACLE_HOME/application-deployments/ascontrol, I found the line:
    <remove-inherited name="global.libraries"/>
    in the <imported-shared-libraries> tag. This essentially means, "ignore everything in the applib directory". It seems, as the instructions in the page above state, you actually have to manually edit the data-sources.xml file in your ORACLE_HOME/config directory in order to add this datasource, as the ascontrol app is unable to do so without loading the library from applib.
    Now, I just commented out this line in the ascontrol's xml file temporarily, and was able to use the ascontrol to add the datasource, but this seems wrong. Now, finally, I can ask my questions:
    1. Is this really the preferred method for adding a MySQL datasource to an OC4J container?
    2. If not, what is?
    3. If so, why is the ascontrol crippled in this fashion, and should it be fixed so it isn't anymore?

    Tank -- we recently discovered this situation with ASC ourselves. There's some history there in that by importing the global.libraries in the past, there has been problems with some libs that ASC itself needed being overridden -- evidently some common practice with a framework we supply was to use the applib directory in this manner, which caused issues for ASC. So the solution was to remove global.libraries from ASC.
    OK so how to solve it, there's a number of options.
    1. Remove the remove-inherited libraries tag from the ASC deployment descriptor as you've identified. I actually have the ASC team checking on whether this is something they want to do in a patch release.
    2. Put the mysql driver into its own installed shared-library, then import that into each app that needs it. And add it to ASC as an imported-shared-library. That way the same code-source is available in each location. I'd have to say this is probably the preferred option at this point.
    3. Put the mysql jar file into both the j2ee/home/applib directory AND the web-inf/lib directory of the so both apps have at it. This introduces an abstract dependency, which may cause issues if you update one but not the other at some future point. But it should work.
    cheers
    -steve-

  • Problem running Page with MySQL DataSource

    Hi All,
    Jdev Version 11.1.1.6.0
    I have created a MYSQL Datasource (Datasource got created successfully and tested). The issue is when I am running a jspx page, I am getting below exception.
    java.lang.NoClassDefFoundError: com/mysql/jdbc/MySQLConnection
    I have provided the Class path in Weblogic - Servers - DefaultServer- Server Start tab like C:\Users\jars\Downloads\mysql-connector-java-5.1.25\mysql-connector-java-5.1.25
    But still I am getting this exception. I didn't got any issue when I created a MYSQL connection, and provided Driver Class path.
    Any pointer, what I am missing here.
    Thanks
    AP

    Hi Suresh,
    Thanks for the post. Well there are 2 thing which I require to understand.
    1. We can create MYSQL connection using Jdev and set the classpath which is provided in post. It worked fine.
    2. We can create datasource of MYSQL connection and use it in our Model Project. Here I am struck and giving this exception when running.
    Since it Enterprise Application, creating Datasource is generic way to connecting. I am facing issue after creating datasource. I tried above approaches, but getting exception.
    Can you help me in understand, what is going wrong in step 2.
    Thanks, AP

  • Problem configure mysql datasource

    Hi, I am trying to use mysql datasource for my application. I had configured MYSQL_DRIVER and then
    i had configured gtasappdb datasource with
       driver-class-name = com.mysql.jdbc.Driver
       url               = jdbc:mysql://localhost:3306/appdb
       alias             = appdbdatasource
    And then i tried to deploy a EJB application which uses the above 'appdbdatasource'. When the application starts
    it says cannot find 'gtasappdb' connectionfactory.
    So can anyone tell me what should be done to use mysql for my application, please

    Hello mahesh,
    There are two ways.
    1. You should add a resource reference to the ds alias in the deployment descriptor of the application component.Once you have defined the reference,use the following snippet to access the data source
    DataSource ds = (DataSource) context.lookup("java:comp/env/<res-ref-name>").
    2. If you have not defined the reference in your application, use the JNDI reference "jdbc/alias".
    Hope this helps,
    Prasad

  • MySQL Not Working: Error 2002

    computer:/ javier$ mysql -u root
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
    How can I fix this,
    sure enough there is no mysql.sock in that directory

    hey, try this in terminal, creating a symbolic link, from your real socket to a "fake socket"
    sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
    Hope this helps!

  • Mysql datasource and WebDynpro

    Hello all!
    I'm new at WD and NW features and I'm trying to figure out the best way to access an external Mysql database with webdynpro.
    I already configured an external mysql datasource at NW CE and it's working fine.
    My doubt is about how I'm going to access this datasource in NWDS? Do I need to create a new Dictionary? How does it work? How do I link this datasource with my WebDynpro project?
    And about the persistence? Must I use JPA, EJB? How do I do it?
    Is there any article about this?

    Hi,
    there are already a lot of examples in the forum of how to connect MySql db with the portal.
    Here is a simple solution:
    If you have already created a datasource:
    try {
                   InitialContext initialContext = new InitialContext();
                   DataSource dataSource = (DataSource)initialContext.lookup("jdbc/YOUR_DB_ALIAS");
                   connection= dataSource.getConnection();
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (NamingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    And you must change YOUR_DB_ALIAS with the real alias name. That is all if you have already created a datasource.
    About what to use: you can use whatever you want. This is just a simple example of how to get your db connection. After that you can do whatever you want with it.
    You can write your one db engine if you want:
                            PreparedStatement stmt = connection.prepareStatement("insert into simple_table simple_values(?)");
                   stmt.setString(1, "Hello world");
                   stmt.execute();
    Or you can use JPA, JDO, EJB, etc... It depends only on your decision. All of them will work.

  • Mysql.sock - connection error (code 2002)

    Performed a clean install of SL Server.
    Enabled Web and MySQL services.
    When using GUI (SequelPro of MySQL GUI Tools) I get a mysql.sock connection error.
    "Could not connect to MySQL instance at localhost. Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (code 2002)"
    The database location of MySQL is /var/mysql. Thus a reference to /tmp/mysql.sock is obviously wrong.
    The file /var/mysql/mysql.sock does exist but apparently no reference is made to this file.
    Q: How to make a reference to the correct socket file,
    Coen
    info from Terminal:
    mysql> status
    mysql Ver 14.12 Distrib 5.0.82, for apple-darwin10.0 (i386) using EditLine wrapper
    Connection id: 6
    Current database:
    Current user: s2xladmin@localhost
    SSL: Not in use
    Current pager: stdout
    Using outfile: ''
    Using delimiter: ;
    Server version: 5.0.82-log Source distribution
    Protocol version: 10
    Connection: Localhost via UNIX socket
    Server characterset: latin1
    Db characterset: latin1
    Client characterset: latin1
    Conn. characterset: latin1
    UNIX socket: /var/mysql/mysql.sock
    Uptime: 1 day 3 hours 41 min 7 sec
    Threads: 1 Questions: 12 Slow queries: 0 Opens: 12 Flush tables: 1 Open tables: 6 Queries per second avg: 0.000
    Message was edited by: Coen Jeukens

    It looks looks like the Sequel Pro app is guessing incorrectly that the mysql.sock is in /tmp. If that's the problem, you should be able to fix it by going to Sequel Pro's Connection panel and entering the correct path, which is /var/mysql/mysql.sock.

  • Applescript with mysql problem (An error of type 1 has occured)

    Hi all!
    I'm quite new to scripting with applescript...
    Currently I'm trying to get applescript to connect to a remote mysql-database, and execute a insert-command.
    All is working fine, when I just use a select-command.
    But when I try to use my insert-query, I get this error:
    "An error of type 1 has occured".
    I've googled high and low, but cant seem to find out either if this is mysql returning the error-code or if it's applescript returning it.
    set mySQLList to {"/usr/local/mysql-5.1.30-osx10.5-x86/bin/", "/Library/mysql-5.1.30-osx10.5-x86/bin"}
    repeat with i from 1 to the count of mySQLList
         try
              set theResult to do shell script (item i of mySQLList) & "mysql -V"
              set gPathToMySQL to (item i of mySQLList)
              set haveFound to true
              exit repeat
         end try
    end repeat
    set gmySQLCommand to gPathToMySQL & "mysql"
    set theHost to "server"
    set theUser to "username"
    set thePassword to "password"
    set thePort to "3306"
    set theDatabase to "database"
    set theTable to "recivedMail"
    set theLoginString to " -h " & theHost & " -u " & theUser & "  --password=" & thePassword
    set dataBaseString to " -D " & "'" & theDatabase & "'"
    --set theCommand to gmySQLCommand & theLoginString & dataBaseString & " -e \"" & "select count(*) from recivedMail;" & "\""
    set theCommand to gmySQLCommand & theLoginString & dataBaseString & " -e \"" & "INSERT INTO database.recivedMail (sentTo,ticket,dateRecived) VALUES ('[email protected]', 'en ticket', '2009-01-21 17:15:56'); " & "\""
    -- set theCommand to gmySQLCommand & theLoginString & dataBaseString & " -e \"" & "SELECT COUNT(*) FROM recivedMail;" & "\""
    set theResult to ""
    --display dialog theCommand
    try
         set theResult to do shell script theCommand
    on error errMsg
         display dialog errMsg
    end try
    return theResult
    can someone here help me out?

    I just had the same problem you described below. I did some searching on the subject in the forums and there seems to be an issue with A.Pack on dual processor machines. I kept getting errors until I shut one of the processors off. The encoding went thru on the first attempt after that.
    There is a system preference pane called Processor that will allow you to shut off one of the processors. Then launch A.Pack and encode. I believe this preference pane is installed when you install the developer software with xcode. The developer software can be found on the Tiger install disc.
    Also, they have done away with A.Pack and this issue in DVDSP 4. Apparently A.Pack is integrated somehow into Compressor.
    Hope this helps. Good luck.
    Dual 1.25GHz   Mac OS X (10.4.3)   1.25GB Ram 22" Cinema & 17" Acer

  • N73 WHY DOSE IT SHOW CONECTION ERROR??

    Hi every1 during converasation the phone just cuts off with a message ( conection error) can any 1 help to solve it?

    My phone the same. On old FW I rarely, if ever, had Connection Error.
    Now with 3- FW it happens frequently. Extremely annoying as turning off and on phone seems to fix it but takes absolutely ages.
    Seems a bit of a coincidence that others with 3-FW are having the same problem as me since the upgrade.
    Anyway...
    Regards...

  • Unable to create : com.mysql.jdbc.Driver error with JDeveloper 10.1.3

    Hi all,
    I got this error when I tried to execute a simple JSF app. I am using JDeveloper 10.1.3 release edition. Please advice
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config>
    C:\JDeveloper10g\jdk\bin\javaw.exe -ojvm -classpath C:\JDeveloper10g\j2ee\home\oc4j.jar;C:\JDeveloper10g\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    2006-01-31 21:40:47.062 NOTIFICATION Auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\dms.war...
    2006-01-31 21:40:47.093 NOTIFICATION Unjar C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\dms.war in C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\dms
    2006-01-31 21:40:47.093 NOTIFICATION Finished auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\dms.war
    2006-01-31 21:40:47.156 NOTIFICATION Auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\connectors\datasources\datasources.rar...
    2006-01-31 21:40:47.156 NOTIFICATION Unjar C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\connectors\datasources\datasources.rar in C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\connectors\datasources\datasources
    2006-01-31 21:40:47.171 NOTIFICATION Finished auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\connectors\datasources\datasources.rar
    2006-01-31 21:40:47.218 NOTIFICATION Auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j.ear...
    2006-01-31 21:40:47.281 NOTIFICATION Unjar C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j.ear in C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j
    2006-01-31 21:40:47.359 NOTIFICATION Finished auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j.ear
    2006-01-31 21:40:47.375 NOTIFICATION Auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j\webapp.war...
    2006-01-31 21:40:47.375 NOTIFICATION Unjar C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j\webapp.war in C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j\webapp
    2006-01-31 21:40:59.296 NOTIFICATION Finished auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j\webapp.war
    2006-01-31 21:41:08.421 WARNING J2EE OJR0107 Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    06/01/31 21:41:08 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    Jan 31, 2006 9:41:08 PM com.evermind.server.ApplicationStateRunning initConnector
    SEVERE: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    06/01/31 21:41:08 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2016)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1961)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1220)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:356)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:208)
         at com.evermind.server.Application.setConfig(Application.java:391)
         at com.evermind.server.Application.setConfig(Application.java:309)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1771)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1532)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:939)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.resource.ResourceException: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:106)
         at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:322)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:1997)
         ... 11 more
    Caused by: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:247)
         at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:107)
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
         ... 13 more
    Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: com.mysql.jdbc.Driver
         Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
         Loader: oc4j:10.1.3
         Code-Source: /C:/JDeveloper10g/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in META-INF/boot.xml in C:\JDeveloper10g\j2ee\home\oc4j.jar
    This load was initiated at current-workspace-app.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.
         at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2061)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1665)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1621)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1606)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:244)
         ... 15 more
    Jan 31, 2006 9:41:08 PM com.evermind.server.ApplicationStateRunning initConnector
    SEVERE: Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2016)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1961)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1220)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:356)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:208)
         at com.evermind.server.Application.setConfig(Application.java:391)
         at com.evermind.server.Application.setConfig(Application.java:309)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1771)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1532)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:939)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.resource.ResourceException: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:106)
         at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:322)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:1997)
         ... 11 more
    Caused by: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:247)
         at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:107)
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
         ... 13 more
    Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: com.mysql.jdbc.Driver
         Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
         Loader: oc4j:10.1.3
         Code-Source: /C:/JDeveloper10g/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in META-INF/boot.xml in C:\JDeveloper10g\j2ee\home\oc4j.jar
    This load was initiated at current-workspace-app.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.
         at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2061)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1665)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1621)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1606)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:244)
         ... 15 more
    06/01/31 21:41:08 WARNING: Application.setConfig Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    Jan 31, 2006 9:41:08 PM com.evermind.server.Application setConfig
    WARNING: Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    2006-01-31 21:41:08.531 WARNING J2EE 0JR0013 Exception initializing deployed application: current-workspace-app. Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 29125 ms.

    I did what Manu suggested with no success. Alternatively, I registered the driver jar with embedded OC4J preferences > global > libraries. Still does not work. Please, note, that when I run JUnit tests against my BC4J application modules with JDBC URL as connection type, everything works just fine. The problem comes while running the JSF application when the application module is using JDBC DataSource as connection type.

  • 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

  • Lookup a MySQL Datasource with a EntityBean EJB with jboss

    Hy all,
    For a few days, i have problems to instance a datasource from my Entitybean
    EJB
    jboss release is 3.2.2 , MySQL 3.23.38
    i use mysql-connector-java-3.0.9-stable-bin.jar for jdbc connectivity
    Here is the source of my datasource mysql-ds.xml
    <datasources>
    <local-tx-datasource>
    <jndi-name>MySQLmydbDS</jndi-name>
    <connection-url>jdbc:mysql://localhost:3306/mydb</connection-url>
    <driver-class>org.gjt.mm.mysql.Driver</driver-class>
    <user-name>mylogin</user-name>
    <password>mypass</password>
    </local-tx-datasource>
    </datasources>
    The datasource is deployed in jboss cause i see the ligne as followed in the
    administration console
    http://localhost:8080/jmx-console
    a.. name=MySQLmydbDS,service=LocalTxCM
    a.. name=MySQLmydbDS,service=ManagedConnectionFactory
    a.. name=MySQLmydbDS,service=ManagedConnectionPool
    My EJB deploy without problems when i put the jar in the deploy directory
    Here is the part of the source of my EJB causing Exception
    public void setEntityContext(EntityContext context) {
    this.context = context;
    try {
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup("java:comp/env/jdbc/ClientDB");
    /* ----> ERROR */
    connexionBD = ds.getConnection();
    catch (Exception e) {
    throw new EJBException("Connexion � la base de donn�es impossible : "
    + e.getMessage());
    Here my ejb-jar.xml
    <ejb-jar>
    <description>Descripteur de d�ploiement pour l'EJB client</description>
    <display-name>EJB Client</display-name>
    <enterprise-beans>
    <entity>
    <description>EJB Client ( BMP )</description>
    <ejb-name>Client</ejb-name>
    <home>com.foobar.ejbs.ClientHome</home>
    <remote>com.foobar.ejbs.Client</remote>
    <ejb-class>com.foobar.ejbs.ClientBean</ejb-class>
    <persistence-type>Bean</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
    <resource-ref>
    <res-ref-name>jdbc/ClientDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>Client</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    And finally the jboss.xml
    <jboss>
    <enterprise-beans>
    <entity>
    <ejb-name>Client</ejb-name>
    <jndi-name>ejb/Client</jndi-name>
    <resource-ref>
    <res-ref-name>jdbc/ClientDB</res-ref-name>
    <jndi-name>MySQLmydbDS</jndi-name>
    </resource-ref>
    </entity>
    </enterprise-beans>
    </jboss>
    The error message when i execute my client :
    java.rmi.ServerException : RemoteException occured in server Thread; nested
    exception is :
    java.rmi.ServerException: EJBException:; nested exception is :
    javax.ejb.EJBException: Connexion � la base de donn�e impossible : Could not
    dereference object
    Thanks in advance if you've already seen this problem.
    Antoine

    I uses MSSQLERVER 2000,<res-ref-name>jdbc/MSSQLDS</res-ref-name>
    <jndi-name>java:/java:/MSSQLDS</jndi-name>
    but DataSource ds = (DataSource) ic.lookup("java:comp/env/jdbc/MSSQLDS")cann't be execute throwing execption:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.ServerException: RuntimeException; nested exception is:
         java.lang.NullPointerException
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
         at sun.rmi.transport.Transport$1.run(Transport.java:148)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:534)
         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
         at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
         at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
         at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
         at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
         at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
         at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
         at $Proxy1.loginUser(Unknown Source)
         at au.com.tusc.client.SessionBMPClient.testBean(SessionBMPClient.java:55)
         at au.com.tusc.client.SessionBMPClient.main(SessionBMPClient.java:77)
    Caused by: java.rmi.ServerException: RuntimeException; nested exception is:
         java.lang.NullPointerException
         at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:361)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
         at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
         at org.jboss.ejb.Container.invoke(Container.java:700)
         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 org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
         at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)
         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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
         at sun.rmi.transport.Transport$1.run(Transport.java:148)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.NullPointerException
         at au.com.tusc.dao.StoreAccessDAOImpl.loginUser(StoreAccessDAOImpl.java:82)
         at au.com.tusc.session.StoreAccessSession.loginUser(StoreAccessSession.java:60)
         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 org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
         ... 21 more
    you said:"Also, when you get a change I believe it recommended that the name and password are placed in the login-config.xml ".
    How where to set up name and password in the login-config.xml .
    additionally,i uses jboss3.2.3,on the jmx-console management,i cann't find "jboss;service=Hypersonic SQL",why?

  • MySQL JDBC connection error

    Hi!
    I am trying to conect to MySql database form a jsp page, but I get error. I am using the following:
    1. MySql dababase installed in C:/mysql
    2. Tomcat installed in c:/tomcat
    3. JDBC driver "mm.mysql-2.0.14-bin.jar" installed in c:\tomcat\lib
    Here is my code:
    <%@ page import="java.sql.*" %>
    <%
    String connectionURL = "jdbc:mysql://localhost:3306/gixpro1?user=username&password=pwd";
    Connection connection = null;
    Statement statement = null;
    ResultSet rs = null;
    %>
    <html><body>
    <%
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    connection = DriverManager.getConnection(connectionURL, "", "");
    statement = connection.createStatement();
    rs = statement.executeQuery("SELECT * FROM gixpro1");
    while (rs.next()) {
    out.println(rs.getString("name")+"<br>");
    rs.close();
    %>
    </body></html>
    Here is my error:
    Internal Servlet Error:
    javax.servlet.ServletException: org.gjt.mm.mysql.Driver
    at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:462)
    at jsp.test_4._jspService(test_4.java:89)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java)
    at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:570)
    at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
    at org.apache.tomcat.core.Handler.service(Handler.java:235)
    at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:481)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
    at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
    at java.lang.Thread.run(Thread.java:484)
    Root cause:
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
    at org.apache.tomcat.util.depend.DependClassLoader12Impl.loadClassInternal1(DependClassLoader12.java:240)
    at org.apache.tomcat.util.depend.DependClassLoader12Impl$1.run(DependClassLoader12.java:109)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.tomcat.util.depend.DependClassLoader12Impl.loadClass(DependClassLoader12.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at jsp.test_4._jspService(test_4.java:68)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java)
    at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:570)
    at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
    at org.apache.tomcat.core.Handler.service(Handler.java:235)
    at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:481)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
    at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
    at java.lang.Thread.run(Thread.java:484) at org.apache.tomcat.util.depend.DependClassLoader12Impl$1.run(DependClassLoader12.java:109)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.tomcat.util.depend.DependClassLoader12Impl.loadClass(DependClassLoader12.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at jsp.test_3._jspService(test_3.java:69)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java)
    at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:570)
    at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
    at org.apache.tomcat.core.Handler.service(Handler.java:235)
    at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:481)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
    at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
    at java.lang.Thread.run(Thread.java:484)

    Hi!
    I also have the same problem (I also test the sample in this case but still got the same error. When I use a standard java client then I can acess mySQL database without any problem, this just occurs when trying to access the database from a JSP page.
    CLASSPATH=
    C:\Program\RDBMS\mySQL\mysql-connector-java-2.0.14\mysql-connector-java-2.0.14-bin.jar
    Please need som advice on this.
    Regards
    Tobbe
    See errormessage below
    javax.servlet.ServletException: org.gjt.mm.mysql.Driver
    at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
    at org.apache.jsp.TestMySQL$jsp._jspService(TestMySQL$jsp.java:91)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    root cause
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1320)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1169)

  • The Creation of Export DataSource Failed Error while transporting ODS Cube

    Hi  All,
    I am facing this issue from last 1 week.. i had developed an ODS cube in APO-DP BW which will fetch data from SAP R/3 and its working fine in APO Dev Server.  But when i transport this cube into APO PAC(Prodn Server) the below error i am getting..
       Start of the after-import method RS_ODSO_AFTER_IMPORT for object type(s) ODSO (Activation Mode)
       The creation of the export DataSource failed
       Password logon no longer possible - too many failed attempts
       Password logon no longer possible - too many failed attempts
       Error when creating the export DataSource and dependent Objects
       Error when activating DataStore Object ZANAUTSL
    I also updated the transport conversion tables but still problem not resolved.
    Immediate help is hightly appreciated.
    Thanx
    AJ

    Hi AJ,
    Looking at your error, it seems that the RFC user's password is locked and hence connectivity from R/3 towards APO BW is broken.
    You know the name of your export datasource (from R/3 to APO BW). Find out the name of your R/3 source system e.g. PACCLT000, by scrolling to the right against teh export data source.
    Take help of your Basis or EAI team to identify the RFC destination corresponding to the connectivity from the R/3 source system (PACCLT000) to your APO BW system. (If needed ask for help from your BW team, I am not very sure how connectivity would be set up from R/3 to APO BW, I guess this would be independent from CIF connectivity)
    For this RFC connection from R/3 to APO BW, see which RFC user is maintained in SM59 in APO and ask your security team to reset (or unlock) the password of this RFC user in R/3, and then if required update the user password details in SM59 in APO also.
    After this, your issue should get resolved.
    Thanks - Pawan

  • Configuring IdM7.1 on SJS application server 8.2 using Mysql DataSource

    Hi all
    i tried to configure MysqlDatasource on Sun Application server EE 8.2.The operating system is Solaris10. i am able to successfully create the connection pool and JDBC datasource (jdbc/trialdb) but when i ran the command
    lh setRepo -v -tDatastore
    -icom.sun.enterprise.naming.SerialInitContextFactory -fjdbc/trialdb
    -uiiop://localhost:3306
    it gives me the following exceptions/errors
    Defaulting administrator to 'configurator'.
    Defaulting credentials to 'configurator'.
    Checking 'RelationalDataStore:jdbc/trialdb'...
    java.io.FileNotFoundException: /psegApp/opt/SUNWappserver/appserver/config/secur
    ity.properties (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42
            at com.sun.enterprise.iiop.POAEJBORB.<clinit>(POAEJBORB.java:78)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:242)
            at org.omg.CORBA.ORB.create_impl(ORB.java:295)
            at org.omg.CORBA.ORB.init(ORB.java:336)
            at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
            at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
            at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitC
    ontextFactory.java:31)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
            at java.lang.Class.newInstance0(Class.java:350)
            at java.lang.Class.newInstance(Class.java:303)
            at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    54)
            at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
            at javax.naming.InitialContext.init(InitialContext.java:223)
            at javax.naming.InitialContext.<init>(InitialContext.java:197)
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:571)
            at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
    ore.java:3834)
            at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
    ava:3779)
            at com.waveset.install.RepoMan.check(RepoMan.java:1194)
            at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
            at com.waveset.install.RepoMan.main(RepoMan.java:1314)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
            at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
            at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.Command.main(Command.java:117)
    java.io.FileNotFoundException: /psegApp/opt/SUNWappserver/appserver/config/ejb.p
    roperties (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42
            at com.sun.enterprise.iiop.J2EEInitializer.<init>(J2EEInitializer.java:5
    4)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
            at java.lang.Class.newInstance0(Class.java:350)
            at java.lang.Class.newInstance(Class.java:303)
            at com.sun.corba.ee.internal.Interceptors.PIORB.registerORBInitializers(
    PIORB.java:377)
            at com.sun.corba.ee.internal.Interceptors.PIORB.parseProperties(PIORB.ja
    va:347)
            at com.sun.corba.ee.internal.TxPOA.TxPIORB.parseProperties(TxPIORB.java:
    116)
            at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:461)
            at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:156)
            at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.jav
    a:336)
            at org.omg.CORBA.ORB.init(ORB.java:337)
            at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
            at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
            at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitC
    ontextFactory.java:31)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
            at java.lang.Class.newInstance0(Class.java:350)
            at java.lang.Class.newInstance(Class.java:303)
            at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    54)
            at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
            at javax.naming.InitialContext.init(InitialContext.java:223)
            at javax.naming.InitialContext.<init>(InitialContext.java:197)
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:571)
            at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
    ore.java:3834)
            at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
    ava:3779)
            at com.waveset.install.RepoMan.check(RepoMan.java:1194)
            at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
            at com.waveset.install.RepoMan.main(RepoMan.java:1314)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
            at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
            at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.Command.main(Command.java:117)
    Warning: unable to read transaction.interoperability config property
    java.io.FileNotFoundException: /psegApp/opt/SUNWappserver/appserver/config/secur
    ity.properties (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42
            at com.sun.enterprise.iiop.security.SecurityMechanismSelector.<clinit>(S
    ecurityMechanismSelector.java:102)
            at com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLS
    ocketFactory.java:211)
            at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(Connecti
    onTable.java:73)
            at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(Connecti
    onTable.java:68)
            at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:7
    0)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.locateObject(Init
    ialNamingClient.java:769)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.getIORUsingHostIn
    fo(InitialNamingClient.java:597)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveCorbaloc(I
    nitialNamingClient.java:573)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingORBIn
    itRef(InitialNamingClient.java:544)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialRefe
    rences(InitialNamingClient.java:1080)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_r
    eferences(InitialNamingClient.java:981)
            at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.ja
    va:2425)
            at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
    a:52)
            at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:583)
            at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
    ore.java:3834)
            at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
    ava:3779)
            at com.waveset.install.RepoMan.check(RepoMan.java:1194)
            at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
            at com.waveset.install.RepoMan.main(RepoMan.java:1314)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
            at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
            at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.Command.main(Command.java:117)
    javax.naming.CommunicationException: Can't find SerialContextProvider
    Failed to load JDBC DataSource 'jdbc/trialdb':
    ==> javax.naming.CommunicationException: Can't find SerialContextProvider
    com.waveset.util.ConfigurationError: Failed to load JDBC DataSource 'jdbc/triald
    b':
    ==> javax.naming.CommunicationException: Can't find SerialContextProvider
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:610)
            at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
    ore.java:3834)
            at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
    ava:3779)
            at com.waveset.install.RepoMan.check(RepoMan.java:1194)
            at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
            at com.waveset.install.RepoMan.main(RepoMan.java:1314)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
            at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
            at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.Command.main(Command.java:117)
    Caused by: javax.naming.CommunicationException: Can't find SerialContextProvider
            at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
    a:63)
            at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:583)
            ... 17 more
    Wrapped exception:
    javax.naming.CommunicationException: Can't find SerialContextProvider
            at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
    a:63)
            at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:583)
            at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
    ore.java:3834)
            at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
    ava:3779)
            at com.waveset.install.RepoMan.check(RepoMan.java:1194)
            at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
            at com.waveset.install.RepoMan.main(RepoMan.java:1314)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
            at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
            at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.Command.main(Command.java:117)There is no security.properties file under config directory. i checked with other installation, no such file have been created under this directory.
    Please help me where i am missing or some else step needs to be followed. i exactly followed the Sun installation manual.
    Thanks in advance.

    Hi Paz,
    Thanks for taking the time :)
    To answer your questions:
    1. Has this WebServices ever worked or is this the first time?
    The web service is working perfectly fine on my working station, the problem appears only when I deploy it on my actual server, which means that the web service is working.
    2. What Apache Axis Version are you using?
    1.4
    3. What JRE version are you using?
    Both my development pc and my server run jre 1.5.0_14
    4. In the actual server environment, can you confirm all information are exactly same as DEV environment...
    Oh yes! Absolutely.
    My recent assumption is that some windows service might be needed to run the web service client and obviously I have no clue which one it might be.
    Just to make sure; is the security policy of my Application Server set correctly?
         permission java.lang.RuntimePermission     "getClassLoader";
         permission java.lang.RuntimePermission "createClassLoader";
         permission java.lang.RuntimePermission "loadLibrary.*";
         permission java.lang.RuntimePermission "queuePrintJob";
         permission java.net.SocketPermission "*", "connect,accept,resolve";
         permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
    // work-around for pointbase bug 4864405
    permission java.io.FilePermission "${com.sun.aas.instanceRoot}${/}lib${/}databases${/}-", "delete";
    permission java.io.FilePermission "${java.io.tmpdir}${/}-", "delete";
         permission java.util.PropertyPermission "*", "read,write";
         permission java.lang.RuntimePermission     "modifyThreadGroup";
    Again thanks for taking the time :)

Maybe you are looking for