Configuring mysql with J2EE

Hi Im a newbie in J2EE. (just started learning it 2 days back that new..;-)
I managed to set up a simple application using the J2ee tutorial. Now i want to try out a database application. I have a mysql database installed. Can anyone guide me on how to setup mysql with j2ee server? Are there any online tutorials etc that would help me in this?
I actually managed to create a connection pool however when i try to ping it i get an error message with says "An error has occurred. Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Class name is wrong or classpath is not set for : org.gjt.mm.mysql.jdbc2.optional.MysqlDataSource" .
I hav already set classpath of mysql driver. Do i need to copy the jar file to any other directory?
Im not too sure if the way i have created connection pool is right, but i used the defaults specified so i guess that should be ok.
Any Help would be appreciated.
Thanks in advance.

Hi! I�m Brazilian and I�ve been learning the English language yet, but I�ll try to describe how to configure J2EE with MySQL.
I am using MySQL version 4.1.7 with J2EE version 1.3 on Windows XP Professional. The driver version of MySQL is 3.0.16.
You have to configure the following two files:
- <J2EE_HOME>\bin\setenv.bat
- <J2EE_HOME>\config\resource.properties
Do the following steps:
1) Copy the JAR file of MySQL driver (mysql-connector-java-3.0.16-ga-bin.jar) to <J2EE_HOME>\lib directory.
2) In <J2EE_HOME>\bin directory open the setenv.bat file and analize the code. It is not hard to understand the code, it is just the classpath configuration of J2EE. After understand it, add a reference of MySQL driver (mysql-connector-java-3.0.16-ga-bin.jar), that was copied to <J2EE_HOME>\lib directory.
3) Run the <J2EE_HOME>\bin\j2eeadmin.bat to configure the resource.properties file.There are two command lines to be executed, as below:
- j2eeadmin.bat -addJdbcDriver <CLASS NAME OF THE DRIVER>
- j2eeadmin.bat -addJdbcDatasource <JNDI NAME> <URL>
For example:
- j2eeadmin.bat -addJdbcDriver "com.mysql.jdbc.Driver"
- j2eeadmin.bat -addJdbcDatasource "jdbc/mysql/test" "jdbc:mysql://localhost/test?user=username&password=pass"
4) After run j2eeadmin.bat, the resource.properties file will be modified. But when I did it and when I executed the verbose command to start J2EE, some error messages was exhibited. So I decided to open the resource.properties file and I noticed hat the character "\" was added erroneously in a lot of places of the code. It did not seem correct, so I decided to remove these characters replacing them. Bingo!!! After I did it, I run verbose again and no more message error ocurred. I think it is a bug of J2EE.
Finish! I modified the datasource JNDI to access MySQL and then I run my EAR application. No problems occurred. My application is running succesfully.
Good luck!

Similar Messages

  • Problem in configuring mysql with JBoss 4

    Hello Forum
    I m having following exceptions while invoking my session bean from servlet
    java.rmi.ServerException: RuntimeException; nested exception is: java.lang.NullPointerException I have put mysql-ds.xml file in :\jboss-4.0.3SP1\server\default\deploy directory and mysql-connector-java-3.1.10-bin.jar in :\jboss-4.0.3SP1\server\default\lib directory.
    my mysql-ds.xml code is (which I take from connector-j doc)
    <datasources>
        <local-tx-datasource>
            <!-- This connection pool will be bound into JNDI with the name
                 "java:/MySQLDB" -->
            <jndi-name>MySQLDB</jndi-name>
            <connection-url>jdbc:mysql://localhost:3306/student</connection-url>
            <driver-class>com.mysql.jdbc.Driver</driver-class>
            <user-name>root</user-name>
            <password>pakistan</password>
            <min-pool-size>5</min-pool-size>
            <max-pool-size>20</max-pool-size>
            <idle-timeout-minutes>5</idle-timeout-minutes>
            <exception-sorter-class-name>com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter</exception-sorter-class-name>
            <valid-connection-checker-class-name>com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker</valid-connection-checker-class-name>
        </local-tx-datasource>
    </datasources>and my session bean code is:
    imports ....
    public class JBSessionBean implements javax.ejb.SessionBean, JBSession.JBSessionRemoteBusiness {
        private javax.ejb.SessionContext context;
        public void ejbCreate() { }
        public java.sql.ResultSet setDbConnection()
            InitialContext ctx ;
            String jndiName = "java:/MySQLDB";
            DataSource ds = null;
            Connection conn = null;
            ResultSet rs = null;                
            String query = "SELECT * FROM stdinfo";
            try
                ctx = new InitialContext();
            catch (NamingException e)
                System.out.println (e.toString());
            //Lookup the data source
            ctx = null;
            try
                ds = (DataSource) ctx.lookup(jndiName);
            catch(NamingException e)
                System.out.println (e.toString() + "Error in Creating the DataSource");
            try
                conn = ds.getConnection();
            catch(SQLException e)
                System.out.println (e.toString() + "Error in Creating Connection");
            try
                Statement stmt = conn.createStatement( );
                System.out.println("got statmnet");
                rs= stmt.executeQuery( query ) ;
                System.out.println("got rs");     
            catch(SQLException e)
                System.out.println (e.toString() + "Error in Creating statement n query");
            return rs;
    }and my servlet code is
    public class JBossWeb extends HttpServlet {
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            ResultSet rSet = null;
            JBSessionRemote remoteRef = lookupJBSessionBean();
            try {
               rSet =  remoteRef.setDbConnection();
            } catch (RemoteException ex) {
                out.println(ex.toString());
            } catch (SQLException ex) {
                out.println(ex.toString());
            } catch (Exception ex){
                out.println(ex.toString());
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Servlet JBossWeb</title>");
            out.println("</head>");
            out.println("<body>");
            out.println("<h1>Servlet JBossWeb</h1>");
            out.println(remoteRef.printTemp());
            if (rSet == null)
                out.println("Resultset null");
            out.println("</body>");
            out.println("</html>");
            out.close();
        private JBSession.JBSessionRemote lookupJBSessionBean() {
            try {
                javax.naming.Context c = new javax.naming.InitialContext();
                Object remote = c.lookup("java:comp/env/ejb/JBSessionBean");
                JBSession.JBSessionRemoteHome rv = (JBSession.JBSessionRemoteHome) javax.rmi.PortableRemoteObject.narrow(remote, JBSession.JBSessionRemoteHome.class);
                return rv.create();
            catch(javax.naming.NamingException ne) {
                java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,ne);
                throw new RuntimeException(ne);
            catch(javax.ejb.CreateException ce) {
                java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,ce);
                throw new RuntimeException(ce);
            catch(java.rmi.RemoteException re) {
                java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,re);
                throw new RuntimeException(re);
    }I m using NetBeans IDE 5. Am I missing anything regarding more configuration in JBoss regarding mysql?
    I could not found why I got exception, please tell me after reviewing my code.
    hope I will got solution from u ppl
    Thanx in advance

    dear dvohra09
    it still giving me the same exception
    java.rmi.ServerException: RuntimeException; nested exception is: java.lang.NullPointerException as u suggested
    <application-policy name = "MySqlDbRealm">
    <authentication>
    <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
    <module-option name ="principal"></module-option>
    <module-option name ="userName">root</module-option>
    <module-option name ="password">pakistan</module-option>
    <module-option name ="managedConnectionFactoryName"> jboss.jca:service=LocalTxCM,name=MySQLDB
    </module-option>
    </login-module>
    </authentication>
    </application-policy>but still I didnt able to connect my database to JBoss
    any idea...???

  • How to configure MySQL to be used with J2EE 1.3.1 -- Very Very URGENT.

    Hi All,
    I have downloaded Sun's J2EE reference implementation 1.3.1. I want to use MySQL as my database instead of the default database Cloudscape that comes with J2EE SDK 1.3.1. Can any one help me configuring in doing the same.
    Thanks and regards,
    Venky.

    Hi! I had the same problem, too. I�m Brazilian and I�ve been learning the English language yet, but I�ll try to describe how to configure J2EE with MySQL.
    I am using MySQL version 4.1.7 with J2EE version 1.3 on Windows XP Professional. The driver version of MySQL is 3.0.16.
    You have to configure the following two files:
    - <J2EE_HOME>\bin\setenv.bat
    - <J2EE_HOME>\config\resource.properties
    Do the following steps:
    1) Copy the JAR file of MySQL driver (mysql-connector-java-3.0.16-ga-bin.jar) to <J2EE_HOME>\lib directory.
    2) In <J2EE_HOME>\bin directory open the setenv.bat file and analize the code. It is not hard to understand the code, it is just the classpath configuration of J2EE. After understand it, add a reference of MySQL driver (mysql-connector-java-3.0.16-ga-bin.jar), that was copied to <J2EE_HOME>\lib directory.
    3) Run the <J2EE_HOME>\bin\j2eeadmin.bat to configure the resource.properties file.There are two command lines to be executed, as below:
    - j2eeadmin.bat -addJdbcDriver <CLASS NAME OF THE DRIVER>
    - j2eeadmin.bat -addJdbcDatasource <JNDI NAME> <URL>
    For example:
    - j2eeadmin.bat -addJdbcDriver "com.mysql.jdbc.Driver"
    - j2eeadmin.bat -addJdbcDatasource "jdbc/mysql/test" "jdbc:mysql://localhost/test?user=username&password=pass"
    4) After run j2eeadmin.bat, the resource.properties file will be modified. But when I did it and when I executed the verbose command to start J2EE, some error messages was exhibited. So I decided to open the resource.properties file and I noticed that the character "\" was added erroneously in a lot of places of the code. It did not seem correct, so I decided to remove these characters replacing them. Bingo!!! After I did it, I run verbose again and no more message error ocurred. I think it is a bug of J2EE.
    Finish! I modified the datasource JNDI to access MySQL and then I run my EAR application. No problems occurred. My application is running succesfully.
    Good luck!

  • No suitable driver when using MySQL in J2EE server

    Hi everyone
    I use MySQL's mm driver version 2.0.11 in conjuction with j2ee server. I added it thru deploytool->Tools->Server configuration->Data source->Standard following the instuctions in the help document, either un-jared or not, setting the classpath or/and j2ee_classpath in userconfig.bat and still got the exception when connecting from client.
    Can anyone tell me why.
    Thanks
    James Chiang from Taiwan

    You may like this:
    http://forum.java.sun.com/thread.jsp?forum=136&thread=237527&message=929097#929097

  • How to use mysql in J2EE server?

    Hi all,
    I have been learning J2EE and playing around with Pointbase as my database and the IDE that I'm using is Forte For JAVA 4 EE.
    Now, I wanna use mysql in J2EE, EJB. But I do not know how to use mysql in j2ee server. I have try to altered the resources.property file by adding a few lines to called the MYSQL datasource and driver. But, it give me errors when i am doing the deployment process. Can any1 of u help me?
    Thanks in advance..

    Hi,
    I guess there must be some problem with your App Server Configuration settings:
    Kindly Check if you are using the following ones:
    Driver Name: com.mysql.jdbc.Driver
    Url: jdbc:mysql://[hostname][,failoverhost...][:port]/[dbname][?param1=value1][&param2=value2].....
    Thanks & regards,
    Paritosh
    Software Engineer
    L&T Infotech Ltd

  • How to use j2se 1.4 logging features with j2ee 1.3

    Hi,
    We have developed an EJB that will run in the j2ee 1.3 container of weblogic 5.0
    We would like to use the logging features of j2se 1.4 in our ejb.
    Can this be done ?
    How do I install and use j2se 1.4 a long side of j2ee 1.3 ?
    Is this a recognised configuration ?
    Many Thanks,
    Mark.

    Is it possible to install j2se 1.4 on the same machine
    that is running weblogic with j2ee 1.3 ? Yes.
    If it is.... How do we do it ?Just install it in different directory - the installer will do this for you by default anyway.
    How do we protect our code running in the j2ee 1.3 container from
    mistakenly using the classes provided with j2se 1.4 ?Thats what PATH and CLASSPATH environment variables are for. Read the tutorials on the left there for more information.
    Do we end up with 2 separate VMs one a implementing
    j2ee 1.3 and one a j2se 1.4 ?You end up with as many as you run.
    Every time you run java (java.exe on windows, just plain java on UNIX) you run the version of the VM that's on your PATH.
    It's quite normal to have (on the same machine) a 1.3 VM running Weblogic and a number of 1.4 VM's as clients of that Weblogic installation.
    I think I'm right in saying that 1.4 VM's are (in some cases) regarded by BEA as supported clients of a Weblogic server running in a 1.3 VM, but you'd have to check their e-docs site for exact details.

  • Help with J2EE SDK 1.4 Virtual Servers please!

    H!
    Are we doomed to have just one virtual server pointing to port 80??
    I have a Win2K computer with J2EE App Server 1.4. In this computer I stopped the IIS 5.0 in order to use the HTTP Server included with the product. I also run the DNS on the same machine with 3 domains. All name resolutions for these 3 domains work fine.
    Now I want to enter to any of the 3 domains freely and execute JSP apps. But I don't want to enter ports numbers like this:
    http://www.mytest.com:8081/hello.jsp
    I just want to enter:
    http://www.mytest.com/hello.jsp
    So I defined a new http-port listener pointing to the 80 port on this server. With no SSL support.
    Name: http-port80
    IP Address: 0.0.0.0
    POrt: : 80
    Then I defined a new virtual server using the http-port listener. I set the following fields:
    ID: mytest
    Hosts: www.mytest.com
    HTTP Listener: http-port80 (This is the name of the port listener)
    Everything seems to be fine. I can enter http://www.mytest.com and call the hello.jsp it's ok.
    But then I create a new virtual server for http://www.mytest2.com exactly as the one for the www.mytest.com, except for the host field: http://www.mytest2.com
    Then when I restart the app server I got the message on the log: "Port already in use".
    I don't want to enter http://www.mytest2.com:<port> but I've read that you cannot assign the same http-listener to 2 virtual servers, so I created another listener pointing to the same port 80. But I still have the same error.
    Any ideas how to handle this?
    Am I doing something wrong on the configuration?
    Thank you very much!!

    I can help you out with this, because I just solved this problem using the Apache web server 2.0 with mod_proxy and mod_proxy_http.
    this is how the configuration works.
    setup sunone creating one virtual host for each http-listener on a different port. and make sure these ports are any port except the 80. -- we will configure apache on this port and then use it as a reverse proxy to get to our hosts.
    like this
    virtual-listener-1 - port 8081
    virtual-listener-2 - port 8082
    virtual-listener-3 - port 8083
    virtual-host-1: www1.domain.com bind to: virtual-listener-1
    virtual-host-2: www2.domain.com bind to: virtual-listener-2
    virtual-host-3: www3.domain.com bind to: virtual-listener-3
    now download apache with all the modules http://www.apache.org
    in your httpd.conf add the following lines of code.
    #the code below will tell apache to enable the proxy for your host
    <IfModule mod_proxy.c>
    # Proxy Server directives. Uncomment the following lines to
    # enable the proxy server:
    ProxyRequests On
    <Proxy *>
    Order deny,allow
    Deny from all
    Allow from www1.domain.com
    Allow from www2.domain.com
    Allow from www3.domain.com
    </Proxy>
    # Enable/disable the handling of HTTP/1.1 "Via:" headers.
    # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
    # Set to one of: Off | On | Full | Block
    ProxyVia On
    # End of proxy directives.
    </IfModule>
    NameVirtualHost *:80
    <VirtualHost *:80>
    ServerName www1.domain.com
    <Location />
    Order allow,deny
    Allow from all
    ProxyPass http://sunoneserver:8081/
    </Location>
    </VirtualHost>
    <VirtualHost *:80>
    ServerName www2.domain.com
    <Location />
    Order allow,deny
    Allow from all
    ProxyPass http://sunoneserver:8082/
    </Location>
    </VirtualHost>
    <VirtualHost *:80>
    ServerName www3.domain.com
    <Location />
    Order allow,deny
    Allow from all
    ProxyPass http://sunoneserver:8083/
    </Location>
    </VirtualHost>
    note the sunone server indicates the server where you installed sunone-as (J2EE 1.4). this will give you the result you are looking for: all three of these sites will run on port 80 and each of them will respond to a different web application on sunone.
    there are naturally limits because when you run out of ports on your application server this won't work any more but then again there are about 60000 of those free and i don't think you will be able to run that many sites on one server anyway.
    Chris.

  • How to connect Mysql to J2EE server exactly?

    Hi,there
    I would like thank you for offering me your precious opinion in advance.
    I got a problem with installing Mysql database into J2EE server. All I have done is:
    1.Install Mysql and put the Mysql driver,mm.mysql-2.0.4-bin.jar into the directory of J2EE which is j2ee1.3.1/lib.
    2. Set the environment variable for invoking the Mysql driver like
    this,CLASSPATH=.;%JAVA_HOME%\lib\mysql-connector-java-2.0.14-bin;%
    J2EE_HOME%\lib\mysql-connector-java-2.0.14-bin;%JAVA_HOME%\bin;
    3.Modify the content of Server.xml file located in J2EE directory like this:
    <DefaultContext>
    <Resource name="jdbc/mysql" auth="Container"
    type="javax.sql.DataSource" />
    <ResourceParams name="jdbc/mysql">
    <parameter>
    <name>driverClassName</name>
    <value>org.gjt.mm.mysql.Driver</value>
    </parameter>
    <parameter>
    <name>drivername</name>
    <value>jdbc:mysql:localhost:3306:mobiledb</value>
    </parameter>
    </ResourceParams>
    </DefaultContext>
    So far,I have no success in connect Mysql to J2EE server. What am I doing wrong?
    Thank you for your kind help.

    hi, sameer
    Thank you for reply. Could you tell me exactly the documents that you see? Do you mean "J2EE tutorial documents"?
    Thanks for advice.
    Revon

  • Configure security with principals.xml

    Hello!
    I'm trying to configure security in Oracle IAS 9.0.4. I have two applications into an OC4J instance. I've configured an admin user with RMI connection permission in the intance's principals.xml file. I've configured another admin user with RMI connection permission in each of the applications' principals.xml.
    One of the applications is trying to connect via JMS to other's queue, but it can't. If I execute a Junit external test, I get an invalid username/password error, but from the first application I get an NameNotFoundException because it says it can't locate my ConnectionFactory class.
    I've configured the ConnectionFactory class and queue properly in instance's jms.xml file.
    I have two questions. First question is why I get different error messages depending from where I try to connect to? Second question is what's the better way to configure security with principals.xml if I want to share user's configuration across applications inside an OC4J instance?
    I have to mention that with an OC4J standalone deployment I had no problem and all worked fine, so I suspect I've missconfigured something at IAS, but I didn't found any document explaining inheritance clearly neither principals.xml at instance - applications context.
    Thank you in advance.
    Eva.

    We don't use principals.xml any more and have adopted the use of the JAAS, via our implementation which goes under the moniker of JAZN.
    I'd have a peruse through the OC4J Security guide as a good starting point:
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28957/toc.htm
    The general J2EE doc library is here:
    http://download.oracle.com/docs/cd/B32110_01/web.htm
    -steve-

  • How to configure rules in J2EE application

    Please tell me how to configure rules in J2EE application. Configure rules in the sense before a page gets loaded a set of rules has to be fired automatically. A general idea how you would have been configured set of rules using java classes.
    If any one would have worked on rules. Please post the code snippets as well to get the idea on how to configure rules. Thnx a lot in advance.

    user13490100 wrote:
    ya I know wht am I doing..jt asking for suggestions on using hibernate and configuration files...rules generally on load of the page for example the update address page..the user is elibigible to edit this page only on certain conditions depends on the policy..is there any other ways of doing these?
    suggestion from side not necessary to take if u dont understand the question dont pass on the comments or type wht ever you want..You are not going to get an answer unless you clearly explain in standard English what your problem is.
    Things you might want to cover:
    --What these rules are (i.e. are they business rules, for example to check if a trade is fraudulent, or to decide if a plane has radar coverage in a particular location)
    --Where these rules are currently stored, if anywhere
    --What you're trying to do with these rules.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Mysql with Adobe business Catalyst

    I have a drupal system with a backend mysql database . I want to move the mysql database and integrate it with Adobe business catalyst. How would i go about doing it ? We are hosting all of our web solutions with Adobe.

    Dear Mr. Karthik J Iyer,
    I hope i can help you with this technology note, how we can integrate mysql database into Adobe business catalyst as your interested to make new website design and of website through Dreamweaver. In this technology note will let you know a most important part of creating a sucessfull MySQL database connection when using the php server model in dreamweamwear. It will also help you in some basic point of Mysql account settings.  Let's suppose that you are installing and configuring MySQL on local or remote system.
    There will one error will occur within Dreamweaver if your setup is fully not configured (installed). A simple error that can show when testing phrase of MySQL connection in Dreamweaver is "An unidentified error has occurred." you can get more help with mentioned link http://helpx.adobe.com/dreamweaver/kb/connect-mysql-database-dreamweaver.html
    Regards,
    David Kroj
    Message was edited by: Liam Dilley: Removed Links used for link building. [ Please note that this posts information is not true. You can not install mysql on business catalyst ]

  • What server comes with J2EE download?(URGENT)

    I've been trying to install jive Forum but always faced problem with it and it seems like J2EE original server don't support it.
    How can I used other servers like Tomcat with J2EE?
    Please help URGENT!

    Ok. I'm installing jive forums (www.jivesoftware.com).
    By now, I've successfully run this forum on Tomcat server and HSQLDB provided by the forum itself. So I supposed that I've got the right settings. Before going on further, let me explain abit of the forum installation. First of all, the home directory for the forum must be set.After that, it's deploy. After deploying, user must access the setup which is jsp pages.
    So I can access the setup page deploying the forum using Tomcat but not J2EE server. And the error I got is that the home directory has not been set when I run it with J2EE server but it's fine with Tomcat server.
    In the command prompt, this is the errors I get:
    java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
    at java.security.AccessController.checkPermission(AccessController.java:401)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
    at java.lang.Thread.getContextClassLoader(Thread.java:1182)
    at org.apache.jsp.index$jsp._jspService(index$jsp.java:187)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
    ava:247)
    at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:197)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
    at com.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java
    :40)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
    ava:213)
    at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:197)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
    at java.lang.Thread.run(Thread.java:534)
    If your project assignment was to deploy this forum
    app on J2EE RI server, then I suppose it can be
    installed on it.I'm wonder what is RI server. Is it the same with Tomcat? I found the configurations file of Tomcat and J2EE server almost the same.
    Obviously the forum software relies on a database. Is
    the database running? Is the jdbc driver for the
    database included in the forum application or have you
    configured your server to find it?For your information, the forum supports Cloudscape database which comes with J2EE1.3.1. The setting up of the database is in the setup pages.
    Do you have any indication what's wrong with the
    setup? Are there errors and stacktraces in the console
    output? Can you access the application on your own
    machine at all?The errors is above. Yes I can access the application on my machine using Tomcat server but not J2EE server.
    Please help. Thanks

  • MySql with JBoss connection refused

    hello,
    I am using MYSql with JBOSS, but while running starting JBOSS it
    gives
    Connection refused error:
    MySqlDB] at java.net.PlainSocketImpl.socketCon
    MySqlDB] at java.net.PlainSocketImpl.doConnect
    MySqlDB] at java.net.PlainSocketImpl.connectTo
    MySqlDB] at java.net.PlainSocketImpl.connect(U
    MySqlDB] at java.net.Socket.<init>(Unknown Sou
    MySqlDB] at java.net.Socket.<init>(Unknown Sou
    MySqlDB] at org.gjt.mm.mysql.MysqlIO.<init>(My
    MySqlDB] at org.gjt.mm.mysql.jdbc2.IO.<init>(I
    MySqlDB] at org.gjt.mm.mysql.jdbc2.Connection.
    159)
    MySqlDB] at org.gjt.mm.mysql.Connection.connec
    MySqlDB] at org.gjt.mm.mysql.jdbc2.Connection.
    va:89)
    MySqlDB] at org.gjt.mm.mysql.Driver.connect(Dr
    MySqlDB] at java.sql.DriverManager.getConnecti
    MySqlDB] at java.sql.DriverManager.getConnecti
    MySqlDB] at org.opentools.minerva.jdbc.xa.wrap
    nnection(XADataSourceImpl.java:118)
    MySqlDB] at org.opentools.minerva.jdbc.xa.wrap
    nnection(XADataSourceImpl.java:151)
    MySqlDB] at org.opentools.minerva.jdbc.xa.XACo
    (XAConnectionFactory.java:246)
    MySqlDB] at org.opentools.minerva.pool.ObjectP
    ol.java:819)
    MySqlDB] at org.opentools.minerva.pool.ObjectP
    a:569)
    MySqlDB] at org.opentools.minerva.pool.ObjectP
    a:521)
    MySqlDB] at org.opentools.minerva.jdbc.xa.XAPo
    APoolDataSource.java:165)
    MySqlDB] at org.jboss.jdbc.XADataSourceLoader.
    der.java:330)
    MySqlDB] at org.jboss.util.ServiceMBeanSupport
    ava:93)
    MySqlDB] at java.lang.reflect.Method.invoke(Na
    MySqlDB] at com.sun.management.jmx.MBeanServer
    java:1628)
    MySqlDB] at com.sun.management.jmx.MBeanServer
    java:1523)
    MySqlDB] at org.jboss.util.ServiceControl.star
    MySqlDB] at java.lang.reflect.Method.invoke(Na
    MySqlDB] at com.sun.management.jmx.MBeanServer
    java:1628)
    MySqlDB] at com.sun.management.jmx.MBeanServer
    java:1523)
    MySqlDB] at org.jboss.Main.<init>(Main.java:21
    MySqlDB] at org.jboss.Main$1.run(Main.java:121
    MySqlDB] at java.security.AccessController.doP
    MySqlDB] at org.jboss.Main.main(Main.java:117)
    I used the following tag in in JBOSS.jacml
    <!-- MYSQL -->
    <mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=MySqlDB">
    <attribute name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute>
    <attribute name="PoolName">MySqlDB</attribute>
    <attribute name="URL">jdbc:mysql://192.168.0.6/AccountingDb:3333</attribute>
    <attribute name="Properties">DatabaseName=AccountingDb</attribute>
    <attribute name="JDBCUser"></attribute>
    <attribute name="Password"></attribute>
    <attribute name="MinSize">0</attribute>
    <attribute name="MaxSize">10</attribute>
    <attribute name="GCEnabled">false</attribute>
    <attribute name="GCMinIdleTime">1200000</attribute>
    <attribute name="GCInterval">120000</attribute>
    <attribute name="InvalidateOnError">false</attribute>
    <attribute name="TimestampUsed">false</attribute>
    <attribute name="Blocking">true</attribute>
    <attribute name="LoggingEnabled">false</attribute>
    <attribute name="IdleTimeoutEnabled">false</attribute>
    <attribute name="IdleTimeout">1800000</attribute>
    <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
    </mbean>
    <!-- END MYSQL -->
    and JDBC tag is
    <!-- JDBC -->
    <mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider">
    <attribute name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,com.pervasive.jdbc.v2.Driver,org.gjt.mm.mysql.Driver</attribute>
    </mbean>
    plz help me out
    thanks
    bhuwan

    I am just use that ...But it works...!!
    MySQL is Runing good ...
    the problem is that you must reset the defaultDS,
    to be Mysql.
    So,Jboss must have only one DefaultDS,
    In My Setup...
    1.standardjaws.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <jaws>
    <datasource>java:/mySQL</datasource>
    2.jboss.jcml (must changed as followed)
    <!-- JDBC -->
    <mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider">
    <attribute name="Drivers">org.gjt.mm.mysql.Driver</attribute>
    </mbean>
    <mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=mySQL">
    <attribute name="PoolName">mySQL</attribute>
    <attribute name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute>
    <attribute name="Properties"></attribute>
    <attribute name="URL">jdbc:mysql://localhost/j2ee</attribute>
    <attribute name="GCMinIdleTime">1200000</attribute>
    <attribute name="JDBCUser" />
    <attribute name="MaxSize">10</attribute>
    <attribute name="Password" />
    <attribute name="GCEnabled">false</attribute>
    <attribute name="InvalidateOnError">false</attribute>
    <attribute name="TimestampUsed">false</attribute>
    <attribute name="Blocking">true</attribute>
    <attribute name="GCInterval">120000</attribute>
    <attribute name="IdleTimeout">1800000</attribute>
    <attribute name="IdleTimeoutEnabled">false</attribute>
    <attribute name="LoggingEnabled">false</attribute>
    <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
    <attribute name="MinSize">0</attribute>
    </mbean>

  • Can BW 3.5 work with J2EE 6.30?

    I have BW 3.5 and J2EE 6.30. Can I configure UDConnection with this Java?

    Alex,
    Hope the below link will be useful.
    BAPI and UD connect
    But I still doubt whether Delta Extraction from BW can be acheived with UD Connect or not.
    Infospokes are the only way to acheive delta.
    Regs
    Gopi.

  • Compiler problems with J2EE

    Hi,
    I�am only new to the J2EE platform but have experience with J2SE. I have installed J2EE 1.4 and Tomcat server 5.0.28 to study for the Web Component Developer Exam.
    When I go to compile my java files, the compiler doesn�t not recognise the J2EE parts of the file. I have imported the correct classes (even the import statements, it doesn�t recognise!) and when I compile, the errors are associated with J2EE classes (i.e. doesn�t recognise HttpServlet....)
    I compile in command prompt by typing: javac myFile.java.
    I am aware that the file servlet-api.jar is required for these J2EE extras when compiling and I think this is my problem. I have put the location of this file on my classpath (set classpath=.;C:\fileDir\servlet-api.jar) by it still fails to compile. I have also put this location of the file directly into my PATH by this doesnt help!
    Can anybody help me out with this configuration problem?
    Thanks very much for any help!

    You need to have j2ee.jar (which can be found in <j2ee_install_dir>/lib directory in your classpath in order to successfully compile.

Maybe you are looking for

  • Product for presenting ABAP report output in Dashboard Presentation

    <u>Background</u> Monash University environment is SAP ERP  ECC6 - no BW. The University has undertaken considerable analysis of spend as part of developing a strategic approach to procurement.  The data used to undertake this analysis was extracted

  • Can I use Time Capsule as an external drive to store iTunes files, photos and to back-up my MacBook Air?

    I need an external drive to back-up my MacBook Air. In addition, my iTunes library of music, TV shows & movies is pretty enormous and I'd like to move it from my MacBook to an external drive to free up space on the laptop. I will need to access my iT

  • How can I find duplicates in Photos app?

    I have a lot of all images that I imported to my mac way back from my old iPhones into folders on my hard drive, I know that there's some duplicates in those folders. But I dragged in everything to the new Photos app to clean up all the mess and keep

  • New iMac on the way - need reassurance!

    Wow! I just found this forum and I'm dumbfounded. I finally decided to go with an Apple product after reading all of the glowing reviews and references to "life beyond the PC". I have a new iMac 24 on the way and holy c**p, I'm freaked. I read throug

  • Changing dpi changes resolution

    Does changing the dpi of an image change the resolution of the image without changing the size? I have an image that is 300 dpi that I need to enlarge 400% changing the dpi to 75. I don't think manually changing the dpi to 600 will actually change th