|
Sorry, i was wrong. I installed cloudscape tables
on MySQL and when you enter the store you get errors. The issue is that in the
PolulateServlet the following code does not seem to work:
if (databaseName.equals("DBMS:cloudscape"))
{ return
installCloudscapeTables(response, dbConnection,
verbose); } else if
(databaseName.equals("Oracle"))
{ return
installOracleTables(response, dbConnection,
verbose); } else if
(databaseName.equals("SQL Server"))
{ return
installSybaseTables(response, dbConnection, verbose);
} else if (databaseName.equals("MySQL"))
{ return
installMySQLTables(response, dbConnection,
verbose); } else
{ PrintWriter
out =
response.getWriter();
out.println("<html>");
out.println("<body
bgcolor=white>");
out.println("<br>Error: Unknown Database: " +
databaseName);
out.println("</html>");
The databaseName = MySQL but the code always goed
to the else-statement. MySQL.equals("MySQL") should be true, what am i not
seeing?
Maarten
----- Original Message -----
Sent: Thursday, June 07, 2001 9:16
AM
Subject: [JBoss-user] error while getting
OrderDAOMySQL
Hi,
I'm trying to install JBoss with MySQL. The
connection is working fine and all the tables are being generated when running
Jboss. When i click on the link enter the store i get the following
error:
com.sun.j2ee.blueprints.petstore.control.exceptions.GeneralFailureException: CatalogDAOFactory.getDAO: Exception while getting DAO type :
com.sun.j2ee.blueprints.shoppingcart.catalog.dao.CatalogDAOMySQL
at com.sun.j2ee.blueprints.petstore.control.web.CatalogWebImpl.(CatalogWebImpl.java:36)
at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getCatalogModel(ModelManager.java:84)
at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.init(ModelManager.java:61)
at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.java:83)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Unknown Source)
With cloudscape i don't have this problem (but i
do have some other problems). I have a CatalogDAOMySQL but i don;t know
if and where i have to register this. I changed the jboss.xml for the
shopping cart to address this file but no luck. Any suggestions?
Thanks,
Maarten
|