Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Configuration of XMLs for Struts DataBase Connection

843833Aug 2 2005 — edited Jan 25 2008
Hi,

I am new to Struts.When i am trying to Access the data base in my struts application action class i am getting "servlet is not available" error.

I added bellow data-sources entry in struts-cofig.xml.

<data-sources>
<data-source>
<set-property property="driverClass"
value="oracle.jdbc.driver.OracleDriver" />
<set-property property="url"
value="jdbc:oracle:thin:@IP:PORT:SID" />
<set-property property="maxCount"
value="5"/>
<set-property property="minCount"
value="1"/>
<set-property property="user"
value="User"/>
<set-property property="password"
value="Password"/>
</data-source>


</data-sources>

surprisingly when i change the code in Action class to get the connection using "DriverManger" it is working..

do i need to do any changes in Configuration files like server-conf.xml..?

i am using Jboss as web-server with out any IDE.

please can any one help me...?

Thanks in advance..

Srini
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 22 2008
Added on Aug 2 2005
4 comments
458 views