On Mon, 2004-09-20 at 17:15, Sir John Nueva wrote: > Hi, > I am having problem running 2 web application that both use JNDI > for the DBForms connection object. > It gives me error message below. My web apps name are members and > inventory. > The weird part is when i call members web application i got the error > below. > Which look like JNDI name in the error is the name i use for > inventory. > Do you have any idea? You can't have two default connections so of course all the pages will use the MEMBERSDB connection.
See the UsersGuide section on Multiple Database Connections If you are running your apps in two different contexts then it should be ok but I get the same error you do when running Tomcat inside my ide but it works fine when running as plain Tomcat. so if you are running inside an ide, try running tomcat normally. > > <dbconnection > name = "java:comp/env/jdbc/MEMBERSDB" > isJndi = "true" > isPow2 = "false" > default = "true" > /> > > <dbconnection > name = "java:comp/env/jdbc/INVENTORYSDB" > isJndi = "true" > isPow2 = "false" > default = "true" > /> > > org.apache.jasper.JasperException: JDBC-Troubles: was not able to create connection > from DbConnection = id=null, name=java:comp/env/jdbc/INVENTORYDB, jndi=true, > conClass=null, username=null, default=true > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > org.dbforms.util.external.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:379) > > root cause > java.lang.IllegalArgumentException: JDBC-Troubles: was not able to create > connection from DbConnection = id=null, name=java:comp/env/jdbc/INVENTORYDB, > jndi=true, conClass=null, username=null, default=true > org.dbforms.config.DbFormsConfig.getConnection(DbFormsConfig.java:259) > org.dbforms.taglib.DbFormTag.doStartTag(DbFormTag.java:2391) > org.apache.jsp.m_005fdetails_jsp._jspService(m_005fdetails_jsp.java:200) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > org.dbforms.util.external.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:379) > Thank you in advance, > Sir John > -- > > The Foreign Buyers' Club > Bringing a little bit of home to Japan -- Shawn <[EMAIL PROTECTED]> ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms