This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JDBC and the fly likes Struts error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Bookmark "Struts error" Watch "Struts error" New topic
Author

Struts error

sreejith parambath
Greenhorn

Joined: Nov 19, 2006
Posts: 8
i am using Myeclipse 5.0 workbench. and i am getting suc a error.

javax.servlet.UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE

the struts-config.xml file is like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">

<struts-config>
<data-sources>
<data-source type="org.apache.commons.dbcp.BasicDataSource">
<set-property
property="driverClassName"
value="oracle.jdbc.driver.OracleDriver" />
<set-property
property="url"
value="jdbcracle:thin:@localhost:1521:ORACLE" />
<set-property
property="username"
value="system" />
<set-property
property="password" value="manager" />
</data-source>
</data-sources>
<form-beans />
<global-exceptions />
<global-forwards />
<action-mappings />
<message-resources parameter="com.yourcompany.struts.ApplicationResources" />
</struts-config>

i am not able to connect to the db

pls help me out in this regard.

regards,
sreejith
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30595
    
154

Sreejith,
Can you connect to Oracle through the command line (sqlplus) on your machine?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
GeeCON Prague 2014
 
subject: Struts error