Connection of Forms6i with MySQL database
Hi all,
Can any knows how to connect Form builder to MySQL Database.
I'am using Oracle Form builder 6i
and MySQL 3.23 Under Windows NT 4.0( Service pack 5a)
Pls give me your valuable suggestion
Regards,
Seema
use odbc
Similar Messages
-
Database connectivity in struts with mysql
Hi,
I want to database connectivity in struts with mysql in struts-config.xml file. I have give the code in struts-config.xml file is given below...................
<data-sources>
<data-source key="dbname" type="org.apache.commons.dbcp.BasicDataSource" >
<set-property property="driverClassName" value="com.mysql.jdbc.Driver" />
<set-property property="url" value="jdbc:mysql://localhost:3306/antrowinnovation" />
<!-- <set-property property="username" value=""/>
<set-property property="password" value="indra" /> -->
</data-source>
</data-sources>
And give the code in Action class is given below...
int i=0;
Connection con;
Statement stmt;
DataSource dataSource = (DataSource)servlet.getServletContext().getAttribute("dbname");
System.out.println(dataSource);
try{
System.out.println("Database connecting....");
con=dataSource.getConnection();
stmt=con.createStatement();
System.out.println("Database connected....");
i=stmt.executeUpdate("insert into login values('" + username + "','" + password + "')");
System.out.println("Values inserted....");
}catch(Exception e){
System.out.println(e.getMessage());
System.out.println("Exception in try");
e.printStackTrace();
return 0;
But when i have run this then i got this Exception....
INFO: Initialize action of type: login.LoginAction
null
Database connecting....
null
Exception in try
java.lang.NullPointerException
at login.LoginAction.insertUser(LoginAction.java:27)
at login.LoginAction.execute(LoginAction.java:47)
at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:743)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Plz help me..Read some Struts tutorial.
-
How to Connect Oracle Forms6i with oracle 10g
Hi,
I'm using oracle 10g database in my xp operating system.. I installed forms6i on my system and edit the tnsname.ora file in the forms installation folder (C:\orant\NET80\ADMIN\tnsnames.ora) with local database tnsnamesora details..
But still I cant connect from forms with local database.. it shows the error ''Oracle Forms Designer has encountered a problem and needs to close. We are sorry for the inconvenience.''
pls anyone help meYes. Long time ago I knew that this is not supported. See metalink/support if there is now any patch for this.
-
Connection pool issues with Mysql
Hi,
I have defined sufficient read connections (50) in the toplink configuration, I am finding toplink is not releasing the connections in Mysql, this is when run from Jboss App server.
Is anyone aware of toplink connection pool issues with MySql?
thanksTopLink always closes connections, I cannot see how this could occur.
Please include your persistence.xml or sessions.xml. Also ensure you are closing your EntityManager or ClientSession, especially if using exclusive connections.
Also include the exception you are getting.
James : http://www.eclipselink.org -
How i can Create Master Repository with MySQL Database?
How i can Create Master Repository with MySQL Database? i need to using MySQL Database to Master & Work Repository.
I try to add mysql libary jar file to drivers . But , can't display MySQL Technology in Database List for Create Master Repository ?
Please..
Edited by: MadoatZ on Feb 19, 2011 1:47 AMCreation of ODI master repository is limited to few relational databases only. Check certification matrix for ODI 11g
Oracle 10.2.0.4+
Oracle 11.1.0.7+
Oracle 11.2.0.1+
Microsoft SQL Server 2005
Microsoft SQL Server 2008
IBM DB2/UDB 9.7 and later FixPaks
IBM DB2/400 (V5R4+)
Hypersonic SQL 1.7.3+
Sybase AS Enterprise 15.0.x
thanks -
Need to re-download PHP Event Calendar with MySQL Database
How do I re-download PHP Event Calendar with MySQL Database purchased earlier. I need link without having to repurchase.
This has nothing to do with Adobe or Dreamweaver. Contact the company from whom you purchased your extension or widget.
Nancy O. -
Is it possible to connect the java with XL database
Hi friends,
Is it possible to connect the java with XL database.
if it is possible can u send the detail for that .
Thnax in Advance..............What the heck is a XL database?
-
Connecting with mysql database
in order to place the component in the JFrame.
we need to take the location (cooridinates values) of the component from the available mysql database.
how to connect the database field values with our java program???
give me some suggestion pls.....public void actionPerformed(ActionEvent e)
//String x=txt1.getText();
//String y=txt2.getText();
String s ="(Select XPosition from data where parameter=ST01)";
String s1 ="(Select YPosition from data where parameter=ST01)";
int i = Integer.parseInt(s);
int j = Integer.parseInt(s1);
String str = e.getActionCommand();
if(str.equals("btn1"))
cr = new Circle();
cr.setSize(30,30);
cr.setLocation(i,j); // here its problem
p2.add(cr);
show();
it shows the Event dispatch error.... -
JSP, EJB in Jboss 4 with mySQL database. Error in connecting to database
Hi, i using JBoss 4-0-1 with jsp and mySQL database. I get this example from a book using stateless session beans. However i modify it so it can connect to mySQL database.
This is my code for jsp.
<%@ page import="asg.MusicEJB.*,
java.util.*,
javax.naming.Context,
javax.naming.InitialContext,
javax.rmi.PortableRemoteObject" errorPage="error.jsp" %>
<%--
The following 3 variables appear in a JSP declaration.
They appear outside the generated _jspService() method,
which gives them class scope.
Since we want to initialize our Music EJB object once
and read the Music Collection database to get the
recording titles once, we place this code inside
method jspInit().
The EJB business method getMusicList()
returns a collection of RecordingVO objects which we
store in ArrayList albums.
--%>
<%!
MusicHome musicHome;
Music mymusic;
ArrayList albums;
Properties properties=new Properties();
public void jspInit() {
properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
properties.put(Context.PROVIDER_URL, "localhost:3306");
System.out.println("............................in properties");
try {
//Context initial = new InitialContext();
InitialContext jndiContext = new InitialContext(properties);
//Object ref = jndiContext.lookup("MusicEJB");
Object objref = jndiContext.lookup("java:comp/env/ejb/EJBMusic");
musicHome = (MusicHome)PortableRemoteObject.narrow(objref, MusicHome.class);
mymusic = musicHome.create();
albums = mymusic.getMusicList();
System.out.println(".............................in line 64");
} catch (Exception ex) {
System.out.println("Unexpected Exception............: " +
ex.getMessage());
ex.printStackTrace();
%>
<%--
The following scriptlet accesses the implicit
request object to obtain the current URL
and saves it to the session object for later retrieval.
It also saves variable mymusic, so we can
make remote calls to our Music EJB, and the collection of
RecordingVO objects. These variables will all be available
to other pages within the session.
--%>
<%
String requestURI = request.getRequestURI();
session.putValue("url", requestURI);
session.putValue("mymusic", mymusic);
session.putValue("albums", albums);
%>
<html>
<head>
<title>Music Collection Database Using EJB & JSP Version 9.7</title>
</head>
<body bgcolor=white>
<h1><b><center>Music Collection Database Using EJB & JSP</center></b></h1>
<hr>
<p>
There are <%= albums.size() %> recordings.
<form method="post" action="musicPost.jsp">
<p>
Select Music Recording:
<select name="TITLE">
<%
// Generate html <option> elements with the recording
// titles stored in each RecordingVO element.
// Obtain the current title from the session object
// (this will be null the first time).
String title;
String currentTitle = (String)session.getValue("curTitle");
if (currentTitle == null) currentTitle = "";
RecordingVO r;
Iterator i = albums.iterator();
while (i.hasNext()) {
r = (RecordingVO)i.next();
title = r.getTitle();
if (title.equals(currentTitle)) {
out.println("<option selected>" + title + "</option>");
else {
out.println("<option>" + title + "</option>");
%>
</select><p><p>
<%--
Provide a "View Tracks" button to submit
the requested title to page musicPost.jsp
--%>
<input TYPE="submit" NAME="View" VALUE="View Tracks">
</form>
</body>
</html>Message was edited by:
chongmingThis is the deployment descriptor for the .ear file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
<application>
<display-name>MusicDAOApp</display-name>
<description>Application description</description>
<module>
<web>
<web-uri>war-ic.war</web-uri>
<context-root>music</context-root>
</web>
</module>
<module>
<ejb>ejb-jar-ic.jar</ejb>
</module>
<!--
<module>
<java>app-client-ic.jar</java>
</module>
-->
</application>
And this is the deployment for the ejb class files:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<ejb-jar>
<display-name>MusicEJB</display-name>
<enterprise-beans>
<session>
<display-name>MusicEJB</display-name>
<ejb-name>MusicEJB</ejb-name>
<home>asg.MusicEJB.MusicHome</home>
<remote>asg.MusicEJB.Music</remote>
<ejb-class>asg.MusicEJB.MusicBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
<env-entry>
<env-entry-name>MusicDAOClass</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>asg.MusicEJB.MusicDAOCloudscape</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>dbUrl</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>jdbc:mysql://localhost/music</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>dbUserName</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>chongming</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>dbPassword</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>kcm82</env-entry-value>
</env-entry>
<security-identity>
<description></description>
<use-caller-identity></use-caller-identity>
</security-identity>
</session>
</enterprise-beans>
</ejb-jar>I can combine the jar and war files into a ear file. deploying is alright without any errors.
However when i run the jsp, it prompt this error:
You Have Encountered an Error
Stack Trace
java.lang.NullPointerException
at org.apache.jsp.musicGet_jsp._jspService(org.apache.jsp.musicGet_jsp:111)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
How to i solve the error? I look at he catch results in the command prompt of JBoss , i found that when running, the code will be caught by the exception and display this:int.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
13:55:21,375 INFO [STDOUT] Unexpected Exception............: EJBException:; nes
ted exception is:
javax.ejb.EJBException: getMusicList: SQLException during DB Connection:
The url cannot be null
13:55:21,375 INFO [STDOUT] java.rmi.ServerException: EJBException:; nested exce
ption is:
javax.ejb.EJBException: getMusicList: SQLException during DB Connection:
The url cannot be null 13:55:21,375 INFO[STDOUT] at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:352)
13:55:21,375 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:196)
What can i do to solve the problem? please helpMessage was edited by:
chongming
Message was edited by:
chongming
Message was edited by:
chongming -
Can not connect Fusion Web Application with MySQL database
Hello to everybody, I have installed jDeveloper since 3 days ago and I am still not able to run a simple web application just to try! I have worked previously with Eclipse and NetBeans but none of them had sooo much errors related to everything. I pasted the JDBC driver everywhere in the jdeveloper folders, to JDK and JRE. To be clear, I created a Fusion Web Application, created an AppModule, tested the conncection with the database and it was fine, created a simple jsf page and added one DataView from the AppModuleDataControl to the jsf file. Everything is ok and when I want to run the jsf file I receive this error:
<May 2, 2013 12:13:18 PM CEST> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at May 2, 2013 12:13:18 PM CEST. Notification details:
WatchRuleType: Log
WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
WatchData: DATE = May 2, 2013 12:13:18 PM CEST SERVER = DefaultServer MESSAGE = [ServletContext@16349538[app:test2 module:test2-ViewController-context-root path:/test2-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NoClassDefFoundError, msg=com/mysql/jdbc/DatabaseMetaData
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4739)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:234)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.adf.model.binding.DCDataControl.setErrorHandler(DCDataControl.java:487)
at oracle.jbo.uicli.binding.JUApplication.setErrorHandler(JUApplication.java:261)
at oracle.adf.model.BindingContext.put(BindingContext.java:1318)
at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:247)
at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1020)
at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1645)
at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:1514)
at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:1474)
at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:1150)
at oracle.adf.model.BindingContext.get(BindingContext.java:1103)
at oracle.adf.model.binding.DCParameter.evaluateValue(DCParameter.java:82)
at oracle.adf.model.binding.DCParameter.getValue(DCParameter.java:111)
at oracle.adf.model.binding.DCBindingContainer.getChildByName(DCBindingContainer.java:2743)
at oracle.adf.model.binding.DCBindingContainer.internalGet(DCBindingContainer.java:2791)
at oracle.adf.model.binding.DCExecutableBinding.get(DCExecutableBinding.java:115)
at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:329)
at oracle.adf.model.binding.DCBindingContainer.evaluateParameterWithElCheck(DCBindingContainer.java:1473)
at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1603)
at oracle.adf.model.binding.DCIteratorBinding.initDataControl(DCIteratorBinding.java:2542)
at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2477)
at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4444)
at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:341)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.isAttributeUpdateable(JUCtrlValueBinding.java:1707)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.isAttributeUpdateable(JUCtrlValueBinding.java:1826)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.isUpdateable(JUCtrlValueBinding.java:2722)
at oracle.adfinternal.view.faces.model.AdfELResolver._isReadOnly(AdfELResolver.java:130)
at oracle.adfinternal.view.faces.model.AdfELResolver.isReadOnly(AdfELResolver.java:147)
at oracle.adfinternal.view.faces.model.AdfELResolverProxy.isReadOnly(AdfELResolverProxy.java:78)
at com.sun.faces.el.DemuxCompositeELResolver._isReadOnly(DemuxCompositeELResolver.java:293)
at com.sun.faces.el.DemuxCompositeELResolver.isReadOnly(DemuxCompositeELResolver.java:322)
at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
at com.sun.faces.facelets.el.TagValueExpression.isReadOnly(TagValueExpression.java:120)
at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:476)
at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:406)
at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:128)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:510)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeFormItem(PanelFormLayoutRenderer.java:1088)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.access$100(PanelFormLayoutRenderer.java:50)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1604)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1523)
at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:187)
at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:318)
at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:283)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeChildren(PanelFormLayoutRenderer.java:420)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.encodeAll(PanelFormLayoutRenderer.java:208)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:91)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399)
at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:350)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:165)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1035)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:342)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:236)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:509)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused By: java.lang.NoClassDefFoundError: com/mysql/jdbc/DatabaseMetaData
at weblogic.jdbc.wrapper.DatabaseMetaData_com_mysql_jdbc_DatabaseMetaData.getDatabaseProductVersion(Unknown Source)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1198)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:234)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.adf.model.binding.DCDataControl.setErrorHandler(DCDataControl.java:487)
at oracle.jbo.uicli.binding.JUApplication.setErrorHandler(JUApplication.java:261)
at oracle.adf.model.BindingContext.put(BindingContext.java:1318)
at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:247)
at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1020)
at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1645)
at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:1514)
at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:1474)
at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:1150)
at oracle.adf.model.BindingContext.get(BindingContext.java:1103)
at oracle.adf.model.binding.DCParameter.evaluateValue(DCParameter.java:82)
at oracle.adf.model.binding.DCParameter.getValue(DCParameter.java:111)
at oracle.adf.model.binding.DCBindingContainer.getChildByName(DCBindingContainer.java:2743)
at oracle.adf.model.binding.DCBindingContainer.internalGet(DCBindingContainer.java:2791)
at oracle.adf.model.binding.DCExecutableBinding.get(DCExecutableBinding.java:115)
at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:329)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeFormItem(PanelFormLayoutRenderer.java:1088)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.access$100(PanelFormLayoutRenderer.java:50)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1604)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1523)
at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:187)
at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:274)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1275)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1677)
at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:91)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399)
at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:350)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused By: java.lang.ClassNotFoundException: com.mysql.jdbc.DatabaseMetaData
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
at weblogic.jdbc.wrapper.DatabaseMetaData_com_mysql_jdbc_DatabaseMetaData.getDatabaseProductVersion(Unknown Source)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1198)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.adf.model.BindingContext.get(BindingContext.java:1103)
at oracle.adf.model.binding.DCParameter.evaluateValue(DCParameter.java:82)
at oracle.adf.model.binding.DCParameter.getValue(DCParameter.java:111)
at oracle.adf.model.binding.DCBindingContainer.getChildByName(DCBindingContainer.java:2743)
at oracle.adf.model.binding.DCBindingContainer.internalGet(DCBindingContainer.java:2791)
at oracle.adf.model.binding.DCExecutableBinding.get(DCExecutableBinding.java:115)
at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:329)
at com.sun.faces.el.DemuxCompositeELResolver.isReadOnly(DemuxCompositeELResolver.java:322)
at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
at com.sun.faces.facelets.el.TagValueExpression.isReadOnly(TagValueExpression.java:120)
at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:476)
at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:406)
at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:128)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:510)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeFormItem(PanelFormLayoutRenderer.java:1088)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.access$100(PanelFormLayoutRenderer.java:50)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1604)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1523)
at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:187)
at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:318)
at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:283)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeChildren(PanelFormLayoutRenderer.java:420)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.encodeAll(PanelFormLayoutRenderer.java:208)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:274)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1275)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1677)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Please help me if you can! Thank you in advance
Edited by: 1003357 on May 2, 2013 3:23 AMI pasted the JDBC driver everywhere in the jdeveloper folders, to JDK and JRE.
The MySQL Connector Java JAR files are not found in the runtime class of the web application as indicated by the error message java.lang.NoClassDefFoundError, msg=com/mysql/jdbc/DatabaseMetaData
Please refer
http://docs.oracle.com/cd/E15523_01/web.1111/e13737/third_party_drivers.htm#autoId1 -
Strange problem with MySQL database
Hello,
I'm totally puzzled by a strange error occurring with PHP/MySQL on my website... I hope someone has got an idea of what's going on and can let me know.
In short, I have a MySQL database set up on the remote server where the website is hosted. Some pages of my website access this database with PHP.
If the website is viewed with a browser in Windows (Firefox), it works well, the database data appear on the pages.
If the website is viewed with a browser on Mac OS (Firefox, Safari), it doesn't work: the database isn't accessed, I get no error, just everything on the page below my PHP code is missing.
I've attached two screenshots to show this. The website URL is: http://www.cerc.co.uk/CERC/v02/
The pages were this occurs are: the home page (index.php and alternative index2.php), the Abous us/News page and the About us/News/Archives page.
I really don't get where my mistake is. I would like to keep the remote server connexion details outside the root folder, but I guess that if there is no solution to this problem, then I'll have to move it back (I think it might have worked like that).
Thanks in advance for any comment,
Emilie
More details
I'm using DW CS4 on Windows XP emulated via VMware on Mac OS 10.5 (don't ask why, I wasn't given any choice). I've set up a localhost server on XP via XAMP and the news database is also there.
Because I'm currently flipping often between the testing server and the remote server, I quickly got fed up to change all the time the connexion mode to the database (localhost or remote server) and have to resynchronise the files each time. Hence I decided to automate a bit the way the database is connected to.
1. These 4 HTML pages with PHP code have got the below two lines when the PHP code starts:
$pathpfx = "../.."; // see mysqlconnexion.php
include('assets_design/php/mysqlconnexion.php');
2. mysqlconnexion.php (see code below) calls a "connexion" file (in PHP) depending on the value of one parameter ($conxchoice). If $conxchoice = 1, the "connexion" file on the localhost is called. If $conxchoice = 2, the "connexion" file on the remote server is called. I've stored the appropriate version of mysqlconnexion.php on the localhost and the remote server (and I have checked it a million of times, they're in the right place).
<?php
// This code is called by and therefore included in the code of some PHP pages,
// independently of where the pages are located within the website folder.
// - Connexion to local server: I couldn't get the function include_once to work
// with a relative path, hence the use of an absolute path.
// - Connexion to host server: I couldn't get the function include_once to work
// with an absolute path, hence the use of a relative path. This leads to the
// following problem: the path of conxsrv.php needs to be adapted to the
// position of the calling PHP page within the website, in order for
// conxsrv.php to be found on the server (it is located outside the website
// root folder). The variable $pathpfx is used for this purpose.
$conxchoice = 2; // connect to 1 = testing server, 2 = host server
// Connexion to database
if ( $conxchoice == 1 )
{ include_once('C:\xampp\htdocs\CERC\assets_testing_server_only\conxloc.php'); }
if ( $conxchoice == 2 )
{ include_once("$pathpfx/cgi-bin/sqlconx/conxsrv.php"); }
?>
I would guess that a first hint of solution lies in the comment block, but I've really tried everything I could think of to work with relative path/absolute path respectively, unsuccessfully.
3. The "connexion" file looks like:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_conx = "aaa";
$database_conx = "bbb";
$username_conx = "ccc";
$password_conx = "ddd";
$conx = mysql_pconnect($hostname_conx, $username_conx, $password_conx) or trigger_error(mysql_error(),E_USER_ERROR);
?>
With aaa, bbb, ccc and ddd the appropriate value depending on the file. The # lines were introduced by DW when these files were created (I've then changed the variable names and moved the files to another place).
ScreenshotsWell, my question has actually not been answered yet but the problem, as strangely as it appeared, has now disappeared. Best but scariest of all, I didn't do anything. Weird.
Hope it never comes back,
Emilie -
hi all,
I am new to this topic,so could any one please help me on this problem.
How to Connect MySQL database with java ,
I am getting errors with Driver and data source.
which ODBC data source (user DSN,system DSN or file DSN ....)
So please help me how to set the driver settings and how to connect it.
If you have any example ....
please post it
thanks...sorry! this is the right one..
import java.io.*;
import java.sql.*;
import java.util.*;
public class MYSQL
Class.forName("org.gjt.mm.mysql.Driver");
String url = "jdbc:mysql:databaseName";
Connection con = DriverManager.getConnection (url, "loginID", "password");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * from javatest");
while(rs.next()) {
int pid = rs.getInt(1);
String name = rs.getString(2);
String address = rs.getString(3);
String city = rs.getString(4);
String state = rs.getString(5);
String zip = rs.getString(6);
String email = rs.getString(7); -
Connecting Oracle 11g with MySQL 5.1
Hey all,
I've been looking all over the web for this, and I can't find any information that applies to my case. I have an Oracle 11g DB setup on a Windows Server 2003 SP2, and have installed the Heterogeneous services ODBC driver. I want to connect this to another Windows 2003 SP2 machine that runs MySQL Community.
On the Oracle side, I have configured the ODBC Systems connection to MySQL, and it connects successfully. I have also configured tnsnames.ora as follows:
mysqlecommerce=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=dvlps11.cosine.com.cy)
(PORT=1521)
(CONNECT_DATA=
(SID=mysql_gateway))
(HS=OK))
I have initmysql_gateway.ora with the following two lines:
HS_FDS_CONNECT_INFO = mysqlecommerce
HS_FDS_TRACE_LEVEL = ODBC
and I have included the following into the listener.ora file:
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=mysql_gateway)
(ORACLE_HOME=C:\Oracle11g\product\11.1.0\db_1)
(PROGRAM=dg4odbc)
I have also created a dblink as follows:
create public database link "MYSQLECOMMERCE"
connect to MYSQLDB
identified by "<pwd>"
using 'mysqlecommerce';
Now when I try to run a simple SQL selection such as:
select "id_category" from "ps_category"@mysqlecommerce
I get the following reply:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[MySQL][ODBC 5.1 Driver][mysqld-5.1.36-community-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"id_category" FROM "ps_category" A1' at line 1
ORA-02063: preceding 2 lines from DG4ODBC
Can anyone please help me understand what is going on?
Thank you in advance!The syntax error is caused by your MySQL database not running in ANSI mode. By default DG4ODBC sends ansi compliant code to the foreign database and this means for case sensitive column and table names it surrounds them by double quotes. MySQL db not running in ANSI compliant mode rejects them and uses a back tick to preserver the case - thus it reports a syntax error in case of double qoutes.
To solve the issue please have a look at My Oracle Support note:
Problems Selecting Mysql Data Using 11.1.0.6 DG4ODBC - Error In Your SQL Syntax [ID 553030.1] -
Hi friends,
I am making a web site for a customer and i need to import
data from MySQL Database but i don't know how to do it.
I would appreciate it if somebody could give me an idea or
tell me where to find a tutorial.
Also i heard that there is a .dll file that Macromedia made,
in order to make it easier to connect Flash with Databases, is that
true ?You'll need a server-side scripting language, like PHP, to
query your
database and format the data for Flash. If AS2 you use the
LoadVars class
for this. You might also check out www.amfphp.org which is an
alternative to
remoting, and allows you to call functions directly on the
server. Once you
use it for a while, it makes LoadVars clunky.
Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Connecting to an online mysql database
Good morning,
I've been developing a website using Dreamweaver, Coldfusion,
and MySQL on my local computer. On the localhost the website works
well. Now I'm ready to upload my pages and need to update the data
source so my pages can access the MySQL databases hosted by
GoDaddy.com. I've had no luck talking with their customer service
about which driver / which port I should use to make the
connection. I understand that Remote Development Services (RDS) is
disabled on their server. Am I missing any steps? Any ideas?
Thanks,
TonyThis TechNote may help:
http://www.adobe.com/go/kb400539
Maybe you are looking for
-
Can't get my Microsfot word to work with 10.8.4
I can't use my Microsoft programs since upgrading to IOS 10.8.4. Is there another product that replaces Word for Mac users. Or is there a way to upgrade what I have already?
-
Air plane mode cant open facetime
Hi i am in mexico and i connect on the wifi and i want to know if i will be charge data or money for using facetime. Also i put my iphone on airplane mode and turn on the wifi but when i try to use facetime it says face time error. Can anybody help m
-
Emergency button on iPhone 5S (how does it work)
How does the emergency button on the iPhone 5S work. How do I set it up
-
I set up sync and downloaded firefox home which I opened. I clicked I already had a sync account and it asked me to add the passcode to my computer under add a device, which is not an option that comes up. Only thing that comes up on my vista compute
-
There is something about it that makes my eyes burn. Change in font, colors, etc. I want to go back to what I had before. I liked it. I am sorry I downloaded this one.