Configuring a DataSource
I'm trying to configure a DataSource for MySql, but when I try to make a ping to the Connection Pool appears this message: "Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Connection could not be allocated because: Syntax error or access violation message from server: "Incorrect database name 'jdbc:mysql://localhost:3306/tienda'"
I'm using this parameters:
DataSource classname = com.mysql.jdbc.jdbc2.optional.MysqlDataSource
Resource type = javax.sql.DataSource
database name = jdbc:mysql://localhost:3306/shop
Can anybody help me?
Thanks.
I suppose you use Windows XP and you have create a System DNS throught Administrative Tools in Control Panel.
If you didn't do it then you should use a Type1 JDBC Driver, an ODBC-JDBC driver. You should donwload the MySQL ODBC Driver and install it.
Then insert this code in your program.
try {
// load database driver class TYPE1
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
// connect to database
connection = DriverManager.getConnection( "jdbc:odbc:tienda");
catch(Exception exc) {
System.out.println(exc);
Else you can use a Type4 JDBC Driver,. In this case you haven't create a System DNS.
try {
// load database driver class TYPE4
Class.forName("com.mysql.jdbc.Driver");
// connect to database
connection = DriverManager.getConnection(LOOK BELOW);
catch(Exception exc) {
System.out.println(exc);
In connection = DriverManager.getConnection(LOOK BELOW);
Change LOOK BELOW with
jdbc:mysql://[host][,failoverhost...][:port]/[database][?propertyName1][=propertyValue1][&propertyName2][=propertyValue2]...
As MySQL JConnector's Manual instructs.
Similar Messages
-
Configuring a Datasource Help (Hyperion Planning)
Please help. I am installing Hyperion Planning - System 9 Release 9.3.1.1 and get the following error in the Configuration utility when I try to configure a datasource:
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no HspEss
baseEnv in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.hyperion.planning.olap.HspEssbaseEnv.<clinit>(Unknown Source)
at com.hyperion.planning.olap.HspEssbaseJniOlap.<clinit>(Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.TestEssConnection(Unknown Source)
at com.hyperion.planning.HspDSEssbasePanelManager.TestEssConnection(HspD
SEssbasePanelManager.java:156)
at com.hyperion.planning.HspDSEssbasePanelManager.queryExit(HspDSEssbase
PanelManager.java:132)
at com.hyperion.cis.config.wizard.ProductCustomInputPanel.queryExit(Prod
uctCustomInputPanel.java:114)
at com.installshield.wizard.awt.AWTWizardUI.doNext(Unknown Source)
at com.installshield.wizard.awt.AWTWizardUI.actionPerformed(Unknown Sour
ce)
at com.installshield.wizard.swing.SwingWizardUI.actionPerformed(Unknown
Source)
at com.installshield.wizard.swing.SwingWizardUI$SwingNavigationControlle
r.notifyListeners(Unknown Source)
at com.installshield.wizard.swing.SwingWizardUI$SwingNavigationControlle
r.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
OS: Windows Vista SP 1
Database: Oracle 11g
App Server: Weblogic 9
Essbase and Oracle are both up and running and can be accessed via other tools.
Any help would greatly be appreciated.
- CPHi,
The first thing that stands out is that you are running on Vista, it is not officially supported and I know people have had troubles getting planning working with it.
The error message points to a problem with the connection to essbase.
Cheers
John -
Problem configure mysql datasource
Hi, I am trying to use mysql datasource for my application. I had configured MYSQL_DRIVER and then
i had configured gtasappdb datasource with
driver-class-name = com.mysql.jdbc.Driver
url = jdbc:mysql://localhost:3306/appdb
alias = appdbdatasource
And then i tried to deploy a EJB application which uses the above 'appdbdatasource'. When the application starts
it says cannot find 'gtasappdb' connectionfactory.
So can anyone tell me what should be done to use mysql for my application, pleaseHello mahesh,
There are two ways.
1. You should add a resource reference to the ds alias in the deployment descriptor of the application component.Once you have defined the reference,use the following snippet to access the data source
DataSource ds = (DataSource) context.lookup("java:comp/env/<res-ref-name>").
2. If you have not defined the reference in your application, use the JNDI reference "jdbc/alias".
Hope this helps,
Prasad -
Workspace 'configure interface datasource' error
Hi All
I have just installed Hyperion 11.1.2.2 on a linux 32 bit machine. The installation and configuration finished succesfully.
When I logged in to console http://ip:9000/workspace and click on "configure interface datasource"
i get error message.
; nested exception is:
HTTP transport error: java.net.MalformedURLException: no protocol: Sessions.asmx
Code: java.rmi.RemoteException
Description: An error occurred processing the result from the server.
Actor: none
Any HelpThanks John. Yes, I have configured the embbeded Http server. I am accessing the url from the linux system directly.
Do you mean the below by wondows component?
11.1.2.2.0 Client Installers for Microsoft Windows V32789-01
I have not configured this on linux.
Thanks! -
Hyperion configure interface datasource problem
i installed hyperion 11.1.2.2 and installation finished succesfully.
I login to console http://ip:19000/workspace and i try to call "configure interface datasource" menu
i get error message.
; nested exception is:
HTTP transport error: java.net.MalformedURLException: no protocol: Sessions.asmx
Code: java.rmi.RemoteException
Description: An error occurred processing the result from the server.
Actor: none
Any thoughts would be great. Thanks...l Use this URL:
http(s)://Local_machine_name/hyperion-bpma-server/Sessions.asmx
If a Sessions page is displayed, then IIS is correctly configured. If there is any error in IIS, check the Event Log to identify the problems. Check the System and Application Log to see if errors were logged by ASP.NET or IIS, and fix any errors. A possible cause is incorrect privileges for the user for the TEMP directory.
l Check the Event Logs from sources starting with HyS9EPMA. Possible causes are communication errors with Shared Services or the database.
l The ASPNET user may not have access to certain folders. If the Event Log displays any security-related errors, assign rights to the ASPNET user.
1. From the command prompt, go to this directory: C:\Windows\Microsoft.NET\Framework\v2.0.50727.
2. Enter run aspnet_regiis.exe -ga.
Refer: Pg 105 of http://docs.oracle.com/cd/E17236_01/epm.1112/epm_install_troubleshooting_1112200.pdf
HTH-
Jasmine. -
CF 11: Configuration a datasources to MS SQL Backend with encryption enforced by SQL Server
Hello List;
I have the following problem: Configuration a datasources to MS SQL Backend with option encryption enforced (by SQL Server).
I goggled in the internet for the configuration of the datasource and find multiple articles/advices:
Configuration a datasource type other with jtds.jdbc.Driver and manual configuration of the connection string:
1. Downloading the driver and copy to the cfusion/lib directory: Done, the driver was recognized by coldfusion after a restart of the service.
2. Copying the ntlmauth.dll to the bin directory of jre/bin: Done
3. Configuration of the jdbc URL: jdbc:jtds:sqlserver://xxxx.xxx.xxx.net:1433/db: Works, I don’t get a connection timeout
4. User and PW: Works: I don’T get a login failure.
5. Advanced settings: Connection String: Maybe here is something wrong: EncryptionMethod=SSL; TrustStore=Path\sqlstore.jks; TrustStorePassword=xxx; ValidateServerCertificate=true; HostNameInCertificate=xxx.xxx.xxx.net;
Error Message (Coldfusion logs/stack trace): I/O Error: DB server closed connection. SQLException while attempting to connect: java.sql.SQLException: I/O Error: DB server closed connection..
Has anybody experiences with this topic/can give me advices/send me screenshots.
frankHi Stephen;
we tried: add EncryptionMethod=SSL; ValidateServerCertificate=false; to the connection string;
And it doesn't work.. Are you sure, that you have enabled encryption enforced in your SQL-Server Settings.
Oherwise the connection works, but the Connection is not encrypted:
Coldfusion lies!
You can controll this by veryfining the open connections on the sqlserver with the query:
SELECT net_transport, protocol_type, encrypt_option ,auth_scheme, program_name FROM sys.dm_exec_connections AS c JOIN sys.dm_exec_sessions AS s ON c.session_id = s.session_id cross apply sys.dm_exec_sql_text(most_recent_sql_handle) AS d
There you can see the jtds Connectionand the (programname) and the encryt_option (must be true).
frank -
How to configure Oracle Datasource in Tomcat
Hello,
My configuration of a Tomcat Datasource (oracle) appears to be wrong. Either that or my oraclejdbc.jar file is in the wrong place. Perhaps my classpath setting is wrong. Any help is appreciated.
Tomcat console error:
20070423 20:46:22.514 http-8080-Processor24(0x005878d2)
JdbcUtil#getDataSourceObject() Throw com.waveset.util.ConfigurationError: Failed to load JDBC DataSource 'java:comp/env/jdbc/wrsPool':
==> javax.naming.OperationNotSupportedException: Can't generate an absolute name for this namespace
Trace output from JdbcUtil:
XPRESS exception:
Can't call method getDataSourceObject on class com.waveset.util.JdbcUtil ==> com.waveset.util.ConfigurationError: Failed to load JDBC DataSource 'java:comp/env/jdbc/wrsPool': ==> javax.naming.OperationNotSupportedException: Can't generate an absolute name for this namespace
XPRESS exception:
Can't call method queryRecords on class com.waveset.util.JdbcUtil ==> java.lang.NullPointerException:
The express code used to call JdbcUtil follows:
<defvar name='dataSource'>
<new class='javax.sql.DataSource'/>
</defvar>
<set name='dataSource'>
<invoke name='getDataSourceObject' class='com.waveset.util.JdbcUtil'>
<null/>
<s>java:comp/env/jdbc/wrsPool</s>
<null/>
</invoke>
</set>
The Tomcat configuration *.xml file
<?xml version='1.0' encoding='utf-8'?>
<Context docBase="wavex" path="/wavex" useNaming="false" workDir="work\Catalina\localhost\wavex">
<Resource name="jdbc/waveexPool " type="javax.sql.DataSource"/>
<Resource name="jdbc/wrsPool" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/waveexPool ">
<parameter>
<name>url</name>
<value>jdbc:sqlserver://localhost:1433;DatabaseName=WaveEx</value>
</parameter>
<parameter>
<name>password</name>
<value></value>
</parameter>
<parameter>
<name>maxActive</name>
<value>4</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>5000</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.microsoft.sqlserver.jdbc.SQLServerDriver</value>
</parameter>
<parameter>
<name>username</name>
<value></value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>2</value>
</parameter>
</ResourceParams>
<ResourceParams name="jdbc/wrsPool">
<parameter>
<name>url</name>
<value>jdbc:oracle:thin:@vega.vf.lmco.com:1521:dev2</value>
</parameter>
<parameter>
<name>password</name>
<value></value>
</parameter>
<parameter>
<name>maxActive</name>
<value>4</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>5000</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
<parameter>
<name>username</name>
<value></value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>2</value>
</parameter>
</ResourceParams>
</Context>
Environment is:
IDM 7.0 on Windows 2000, sql server houses the repository.
Tomcat 5.0.28 with JDK 1.6thanks for the reply, i have configured the connection pool settings in the tomcat.
I created a class with static method, which will return the connection object.
whenever i need the connection object, iam invoking the static method, once its usage is over iam closing thew connection..
is it the right way of using the connection object in the web application. -
Error while configure struts Datasource
I want to configure data source,I use Tomcat5.5.15 and struts-1.2.9,my database is Microsoft Access2000,my configure is follows:
<struts-config>
<data-sources>
<data-source type="org.apache.commons.dbcp.BasicDataSource">
<set-property
property="driverClassName"
value=" sun.jdbc.odbc.JdbcOdbcDriver" />
<set-property
property="url"
value="jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ=c:\\db1.mdb" />
<set-property
property="username"
value="administrator" />
<set-property
property="password"
value="123" />
<set-property
property="maxActive"
value="10" />
<set-property
property="maxWait"
value="5000" />
<set-property
property="defaultAutoCommit"
value="false" />
<set-property
property="defaultReadOnly"
value="false" />
</data-source>
</data-sources>
<struts-config>
When I start Tomcat,it raise following error:
New org.apache.commons.dbcp.BasicDataSource
Begin event threw exception
java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1352)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0 (Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.struts.digester.ObjectCreateRule.begin(ObjectCreateRule.java:152)
at org.apache.struts.digester.Digester.startElement (Digester.java:528)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch (Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.struts.digester.Digester.parse(Digester.java:755)
at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
at javax.servlet.GenericServlet.init(GenericServlet.java :211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at org.apache.catalina.core.StandardContext.loadOnStartup (StandardContext.java:3915)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:910)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:873)
at org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start (StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java :275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2006-4-2 8:40:02 org.apache.coyote.http11.Http11BaseProtocol start
Why raise above error? How to correct it?
Thanks!Sounds like you are missing a jar file.
org.apache.commons.dbcp.BasicDataSource is in the file commons-dbcp.jar
You can download it from jakarta: http://jakarta.apache.org/commons/dbcp/
However, the struts data-source config is semi-deprecated.
It is currently provided for backwards compatibility, but may be removed in future versions.
http://struts.apache.org/struts-doc-1.2.x/faqs/database.html
The recommendation is to instead use JNDI Datasources, set up by the application server.
Setting up a JNDI datasource in Tomcat: http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-examples-howto.html -
WL7: deploy fails to find configured TX DataSource
I don't understand why I'm getting the following exception at deployment
(external-stage):
weblogic.ejb20.WLDeploymentException: The DataSource with the JNDI name:
mysql-txdatasource-pool could not be located. Please ensure that the DataSource
has been deployed successfully and that the JNDI name in your EJB Deployment
descriptor is correct.
Here is an excerpt from my "config.xml" that shows the data sources and pools,
all of which I created in the admin console:
<JDBCConnectionPool ACLName="admin"
DriverName="org.gjt.mm.mysql.Driver" Name="mysql-pool"
Password="{3DES}jkpHRiRP/zU=" Properties="user=admin"
TestConnectionsOnRelease="true" TestConnectionsOnReserve="true"
TestTableName="Stuff" URL="jdbc:mysql://wondark/mysql" XAPassword="{3DES}jkpHRiRP/zU="/>
<JDBCDataSource JNDIName="mysql-datasource-pool"
Name="MySQL DataSource Pool" PoolName="mysql-pool"/>
<JDBCTxDataSource JNDIName="mysql-txdatasource-pool"
Name="MySQL Tx Data Source" PoolName="mysql-pool"/>
Does anyone have any idea why this could be happening, or something that I
could do to get more information?
I'm running on Win2k.
===================================================================
David M. Karr ; Java/J2EE/XML/Unix/C++
[email protected]David,
I'd try to stop the server, add Targets="myserver" to the defintion
of the pool and datasource and then restart the server and look
at the shell console/server log for errors.
Regards,
Slava Imeshev
"David M. Karr" <[email protected]> wrote in message
news:[email protected]...
"Slava" == Slava Imeshev <[email protected]> writes:
Slava> Hi David,
Slava> Couple things about the pools and data sources defintion:
Slava> 1. Your pool and datasources just didn't start because a targetwas
Slava> not defined for them. Go to the console and add target to thepool
Slava> and then to the datasources.
In the "Targets" tab of the Pool, I put "myserver" in the "chosen" listand
clicked Apply, which produced the exception listing following this.
Exception
java.lang.NullPointerException
atweblogic.management.console.utils.MBeans.getMBeanClassNameFor(MBeans.java:11
53)
atweblogic.management.console.actions.mbean.EditMBeanAction.getMBeanClass(Edit
MBeanAction.java:210)
atweblogic.management.console.actions.mbean.EditMBeanAction.getDialogTypeKey(E
ditMBeanAction.java:188)
atweblogic.management.console.actions.internal.InternalActionContext.setAction
(InternalActionContext.java:158)
atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:170)
atweblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
let.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5363)
atweblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3043)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
--------------- nested within: ------------------
weblogic.utils.NestedRuntimeException - with nested exception:
[java.lang.NullPointerException]
atweblogic.management.console.utils.MBeans.getMBeanClassNameFor(MBeans.java:11
56)
atweblogic.management.console.actions.mbean.EditMBeanAction.getMBeanClass(Edit
MBeanAction.java:210)
atweblogic.management.console.actions.mbean.EditMBeanAction.getDialogTypeKey(E
ditMBeanAction.java:188)
atweblogic.management.console.actions.internal.InternalActionContext.setAction
(InternalActionContext.java:158)
atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:170)
atweblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
let.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5363)
atweblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3043)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
--------------- nested within: ------------------
weblogic.management.console.actions.ActionException - with nestedexception:
[weblogic.utils.NestedRuntimeException - with nested exception:
[java.lang.NullPointerException]]
at weblogic.management.console.actions.ErrorAction.(ErrorAction.java:38)
atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:190)
atweblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
let.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5363)
atweblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3043)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Current Date
Fri Jun 28 14:43:09 PDT 2002
Console Release Build
null
Console Build
null
Server Release Build
7.0.0.0
Server Build
WebLogic Server 7.0 Thu Apr 25 17:16:22 PDT 2002 180709
All Server Product Versions
WebLogic Server 7.0 Thu Apr 25 17:16:22 PDT 2002 180709
WebLogic XMLX Module 7.0 Thu Apr 25 17:26:07 PDT 2002 180709
Request Info
Protocol: HTTP/1.1
ServerName: wondark
ServerPort: 7001
Secure: false
ContextPath: /console
ServletPath: /common/error.jsp
QueryString:MBean=mydomain%3AName%3Dmysql-pool%2CType%3DJDBCConnectionPool
PathInfo: null
PathTranslated: null
RequestURI: /console/common/error.jsp
AuthType: null
ContentType: application/x-www-form-urlencoded
CharacterEncoding: null
Locale: en_US
Method: POST
Session:weblogic.servlet.internal.session.MemorySessionData@2b3afd
RequestedSessionId:9cXpEaa7cV5TXFJnAUGfx5xKzjbhLrdqm9C7hZHST81m0xSXU2zq!-285718339!102530039338
5
RequestedSessionIdFromCookie: true
RequestedSessionIdFromURL: false
UserPrincipal: weblogic
RemoteUser: weblogic
RemoteAddr: 192.168.1.100
RemoteHost: wondark
Parameters
MBean = mydomain:Name=mysql-pool,Type=JDBCConnectionPool
chosen_wl_control_weblogic.management.configuration.JDBCConnectionPoolMBean.
Targets-Server = mydomain:Name=myserver,Type=Server
weblogic.console.submit_form = dataposted
wl_control_weblogic.management.configuration.JDBCConnectionPoolMBean.Targets
-Server = mydomain:Name=myserver,Type=Server
>
Attributes
wlinternalaction =weblogic.management.console.actions.internal.InternalActionContext@1740fa
java.util.Locale = en_US
weblogic.management.console.catalog.Catalog =weblogic.management.console.catalog.XmlCatalog@61c345
weblogic.management.console.helpers.BrowserHelper = User-Agent:Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1a+) Gecko/20020625 IE:
false Netscape: true Supported: true JavscriptHrefs: true TableCellClick:
false DocumentReloadedOnResize: true DropdownStretchable: false
CellSpacingBlank: true EmptyCellBlank: true ImgOnclickSupported: false
TableBorderFancy: false PartialToWideTables: true DisabledControlSupported:
false
weblogic.management.console.helpers.DebugHelper =weblogic.management.console.helpers.DebugHelper@3fe222
weblogic.management.console.helpers.UnitsHelper =weblogic.management.console.helpers.UnitsHelper@5e6a4f
weblogic.management.console.helpers.UrlHelper =weblogic.management.console.helpers.UrlHelper@2b0523
>
Headers
Accept =text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1
Accept-Charset = ISO-8859-1, utf-8;q=0.66, *;q=0.66
Accept-Encoding = gzip, deflate, compress;q=0.9
Accept-Language = en-us, en;q=0.50
Connection = keep-alive
Content-Length = 300
Content-Type = application/x-www-form-urlencoded
Cookie =ADMINCONSOLESESSION=9cXpEaa7cV5TXFJnAUGfx5xKzjbhLrdqm9C7hZHST81m0xSXU2zq!-28
5718339
Host = wondark:7001
Keep-Alive = 300
Referer =http://wondark:7001/console/actions/mbean/EditMBeanAction?reloadNav=false&ta
b=targets&MBean=mydomain%3AName%3Dmysql-pool%2CType%3DJDBCConnectionPool
User-Agent = Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1a+)Gecko/20020625
>
BrowserInfo
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;rv:1.1a+) Gecko/20020625
IE: false
Netscape: true
Supported: true
JavscriptHrefs: true
TableCellClick: false
DocumentReloadedOnResize: true
DropdownStretchable: false
CellSpacingBlank: true
EmptyCellBlank: true
ImgOnclickSupported: false
TableBorderFancy: false
PartialToWideTables: true
DisabledControlSupported: false
Errors occurred while processing your request.
===================================================================
David M. Karr ; Java/J2EE/XML/Unix/C++
[email protected] -
Vendor-independent way to configure a DataSource
Does anyone have advice on a app-server independent way to configure DataSources for a J2EE app? I currently define my connection pool in weblogic.properties, but I'm trying to get as much out vendor specific config files as possible.
Thank you,
AdamI remember that in weblogic6.0sp2 you can config a DataSource in a file named config.xml. and that file belong to a individual application(or a website? that project is not on my hands and I can not sure). Hope it can help you.
Best Regards. -
Proper way to configure JDNI datasource
Hi all.
I'm a little bit confused about the myriad of ways to potentially configure a JNDI resource reference (in this case a datasource).
I'm using Tomcat 4.1 and Struts. It appears that JNDI references can be specified in the files:
Tomcat: server.xml and web.xml (for all apps)
Struts: struts-config.xml
App: web.xml
I'm trying to configure an Oracle Connection Pool DataSource using the OracleDataSourceFactory and OracleDataSource types. The question is, where is the resource properly specified? I've gotten it to work by putting code in the Tomcat server.xml file but that obviously ties me to Tomcat. If I put it in struts-config.xml that ties me to Struts, so what I'd like is the proper way to configure it in web.xml (which is supposed to be the same no matter which app server you drop the app into).
Anybody got any advice??
DaveHello!!
I think that your code is 100% portable, but the datasource isn't it. Because you need do a new connection pooling for every diferent server you have, and you can reference it from your code for use it. I don't know if you can export the server configuration to a file and then this file could be loaded in another similar server, the same way that you can do a war file and then you can deploy it in a new server.
I hope this can be helpful
Bye!! -
Please help : How to configure a datasource in 9iAS
Hello all,
I am new at 9iAS . Can anyone tell me how we configure datasource with JNDI name in 9iAS.
any help will be appriciated.
Thanks a lot
Madhukar
nullDo you mean from flash in a web page or do you mean
converting the swf file format (maybe with a decompiler or
whatever).
If you're meaning to do it from flash in a web page:
You can't save a movieclip from flash to svg. You could
perhaps record drawingAPI commands and create the appropriate svg
output in an internal xml object which you then send to the server.
But I don't know of any pre-built classes to do that (disclaimer:
because I don't know of any doesn't mean they don't exist).
Going from svg to flash is doing it the other way around.
Converting the svg paths back to actionscript drawing commands. I
think I've seen some examples of this online somewhere. -
Configure JBoss DataSource for DB2/400
I am trying to set up a connection pool data source for my AS/400 in JBoss 3.0, I have modified db2-service.xml and put it in my deploy folder:
<depends optional-attribute-name="ManagedConnectionFactoryName">
<!--embedded mbean-->
<mbean code="org.jboss.resource.connectionmanager.RARDeployment" name="jboss.jca:service=LocalTxDS,name=DB2DS">
<attribute name="JndiName">DB2DS</attribute>
<attribute name="ManagedConnectionFactoryProperties">
<properties>
<config-property name="ConnectionURL" type="java.lang.String">jdbc:as400://myas400/MYDB;user=MYUSR;password=MYPASS</config-property>
<config-property name="DriverClass" type="java.lang.String">com.ibm.as400.access.AS400JDBCDriver</config-property>
<!--set these only if you want only default logins, not through JAAS -->
<config-property name="UserName" type="java.lang.String"/>
<config-property name="Password" type="java.lang.String"/>
</properties>
</attribute>
<!--Below here are advanced properties -->
<!--hack-->
<depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper</depends>
</mbean>
</depends>
When I call DataSource.getConnection() i get the exception:
javax.resource.ResourceException: Apparently wrong driver class specified for URL: class: com.ibm.as400.access.AS400JDBCDriver, url: jdbc:as400://myas400/MYDB;user=MYUSR;password=MYPASS
Any help is appreciated!
Any links for configuring jboss would be great too.
Thanks in advance!Look my posts in this: http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=11&t=003844 thread -- this may be usefull for you. That's jboss configuring for Oracle DB.
Regards, Volodymyr Shram. -
How to Configure the Datasource In JNDI and access it through Java Code
I have declared under web.xml
<resource-ref>
<res-ref-name>MSDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
Under Jrun-resource.xml
<data-source>
<dbname>xxxxxxx</dbname>
<driver>macromedia.jdbc.sqlserver.SQLServerDriver</driver>
<url>jdbc:macromedia:sqlserver://xxx.xxx.xx.xx:1433;databaseName=xxxxxxx</url>
<username>xxxxxxxx</username>
<password>xxxxxxxxx</password>
<encrypted>false</encrypted>
<encryption-class>jrun.security.JRunCrypterForTwofish</encryption-class>
<native-results>true</native-results>
<remove-on-exceptions>true</remove-on-exceptions>
<pool-statements>false</pool-statements>
<initial-connections>1</initial-connections>
<connection-timeout>1200</connection-timeout>
<transaction-timeout>20</transaction-timeout>
<cache-enabled>false</cache-enabled>
<cache-size>5</cache-size>
<cache-refresh-interval>30</cache-refresh-interval>
<jndi-name>MSDataSource</jndi-name>
<poolname>Pool</poolname>
<minimum-size>0</minimum-size>
<maximum-size>2147483647</maximum-size>
<user-timeout>20</user-timeout>
<skimmer-frequency>420</skimmer-frequency>
<shrink-by>5</shrink-by>
<maximum-soft>true</maximum-soft>
<debugging>false</debugging>
<disable-pooling>false</disable-pooling>
<isolation-level>READ_UNCOMMITTED</isolation-level>
<description/>
</data-source>
Under jrun-web.xml
<resource-ref>
<res-ref-name>MSDataSource</res-ref-name>
<jndi-name>MSDataSource</jndi-name>
</resource-ref>
Java Code
String dsndb="java:comp/env/MSDataSource";
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,"jrun.naming.JRunContextFactory");
p.put(Context.PROVIDER_URL, "localhost:2932");
InitialContext context=new InitialContext(p);
System.out.println(context.getEnvironment());
DataSource ds=(DataSource)context.lookup(dsndb);
ds.getConnection();
System.out.println(ds.getConnection().toString());
Error is
{java.naming.provider.url=localhost:2932, java.naming.factory.initial=jrun.naming.JRunContextFactory}
Exception in thread "main" javax.naming.NameNotFoundException: No such binding: MSDataSource
at jrun.naming.ContextManager.getBinding(ContextManager.java:680)
at jrun.naming.ContextManager.getBinding(ContextManager.java:686)
at jrun.naming.ContextManager.getObject(ContextManager.java:690)
at jrun.naming.ContextManager.lookup(ContextManager.java:463)
at jrun.naming.JRunNamingContext.lookup(JRunNamingContext.java:501)
at jrun.naming.JRunNamingContext.lookup(JRunNamingContext.java:644)
at jrun.naming.JRunNamingContext.lookup(JRunNamingContext.java:470)
at javax.naming.InitialContext.lookup(Unknown Source)
at Controller.DBManager.getConnection(DBManager.java:29)
at Controller.DBManager.main(DBManager.java:42)
Please help me .
Thanks in advanceAlso, try to log the username/password in your authenticator, just to be sure that credentials changeGood piece of advice, michael. Worth of it. When I changed the credentials manually, it worked correctly,but from the application, when I logout from 'a', 'a' and log in to 'b', 'b', I got a valuable information.
I tried debugging like given below for checking from the application.
class MyAuthenticator extends Authenticator {
protected PasswordAuthentication getPasswordAuthentication() {
System.out.println("userrrrrrrrr"+UtilsHTTPS.username);
System.out.println("pwdddddddddd"+UtilsHTTPS.password);
.........................................The information I got while debugging from the application was, the username and password does not get printed. It implies that, Authenticator.setDefault(new MyAuthenticator()); does not work as desired ie; even on calling new MyAuthenticator(), it does not get inside the MyAuthenticator class.
Why does this happen? What is the solution for this? -
When configuring a datasource for Oracle using the thin client, I get an Oracle error.
We have had no problems using Oracle up to this point, and have been using ColdFusion and Oracle very happily for a long time.
Due to security requirements where the ColdFusion server is hosted, the following changes were made to the Oracle client on the Oracle RDMS machine which caused ColdFusion to be unable to connect.
In the sqlnet.ora file, we had to add the follwing line:
SQLNET.ALLOWED_LOGON_VERSION = 10
That parameter was required, it is not optional and we cannot lower it.
Info about our ColdFusion Server:
System Information
Server Details
Server Product
ColdFusion
Version
ColdFusion 10,285437
Edition
Enterprise
Operating System
Windows Server 2008 R2
OS Version
6.1
Update Level
/D:/ColdFusion10/cfusion/lib/updates/chf10000011.jar
Adobe Driver Version
4.1 (Build 0001)
We are using Oracle 11.2.0.3
Once that change is in place, connections from our ColdFusion server get refused with the following error:
ORA-28040: No matching authentication protocol
I have verified that I can connect to the database with our credentials, and verified that the connection is valid:
From the local server's ODBC Data Source Administrator console, I create a system DSN using the Oracle OCI client driver (ojdbc6.jar) by indicating that the TNS Service name is the same as defined in the TNSNames file, and it tests out fine.
Everything I have found on the net indicates that I would need to make a change to the Client, but the Client in this case is the ColdFusion server. It doesn't seem like other than the fact that it seems to be using the correct driver, that it is making any use of any of the additional settings, including those found in the sqlnet.ora file.
HELP! I don't know where else to go... i don't believe that this is an Oracle error, since everything seems to be functioning correctly. I believe this to be a ColdFusion issue.
Any help or pointers would be greatly appreciated.Thank you VJ, however that didn't provide any help. There are no pointers at all within that post.
Please keep in mind that I don't believe this to be an Oracle issue. The Oracle client is functioning fine when I use the ODBC tools in windows to verify the connection.
I can google, "SQLNET.ALLOWED_LOGON_VERSION = 10" and get a billion links that say basically nothing too.
I believe this is the way ColdFusion is configured to use the Oracle drivers... Which is why I can't ask Oracle, they'd just tell me to go to Adobe!
But, I have searched Oracle Support, and there wasn't much there either, so I am turning to the community in hopes that someone has seen this and solved it.
Maybe you are looking for
-
SRM "one-client" installation on ECC 6.0 EhP: Own client needed for SRM?
Hello experts, i've a question concerning the SRM "one-client" installation on ECC 6.0 EhP4 as Add-On. Is it possible to use SRM and ERP funtionality in a single client e.g. 001? Or do we have to use different clients on the system like for SUS? I ha
-
Vendor Master - Restrict Change of fields
Hi Guys, Is it possible to grey out certain fields in vendor master so that they cannot be changed? While using FK02 or XK02, I want certain fields to be greyed out so users cannot change. And is it possible to develop a new transaction code using wh
-
Down payment (B/S account) assign to IO
Dear Experts, We've created an IO, and assign budget $ 1,445,000 to the IO. In F-43, we created the following entry. Dr. down payment (vendor)--- $ 1,440,000 (B/S account) assign to IO Cr. AP (vendor)*--- $ 1,440,000 For system instruction, if we wa
-
Garageband quit unexpectedly - Core audio driver loads
The last time I used Garageband 2 I was at home connected to my DIGI002. This week I am on the other side of the country and I attempted to open Garageband 2 so that I could work on a recording. I received the message "The Application Garageband 2 qu
-
Hi Experts, We need to run the 1099 Misc process every year. we have developed a custom program copying the standard program RFW1099M. Before starting the 1099 Misc process for the 01/01/2009 to 31/12/2009 we need to know the OSS notes for this stan