File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Struts error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Struts error" Watch "Struts error" New topic

Struts error

sreejith parambath

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" "">

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

i am not able to connect to the db

pls help me out in this regard.

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32844

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

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Struts error
It's not a secret anymore!