File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Oracle/OAS and the fly likes Oracle 9i AS and struts!! Urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Oracle 9i AS and struts!! Urgent" Watch "Oracle 9i AS and struts!! Urgent" New topic

Oracle 9i AS and struts!! Urgent

Saritha Penumudi
Ranch Hand

Joined: Aug 18, 2003
Posts: 148

I was trying Oracle 9i AS. I have an simple application (Login which was done using JSP, Struts, CMP <ejb>, Mssql server) that is deployed and tested on Weblogic8.1. I wanted to test the same application by just changing the deployment descriptors as per the Oracle 9i AS.

But I get exceptions that it cannot load action servlet. I would appreciate if anyone could let me know what I was doing wrong.

I have all struts related files in WEB-INF/lib folder.

Here are the deployment descriptors.

<?xml version = '1.0' standalone = 'yes'?>
<!DOCTYPE data-sources PUBLIC "Orion data-sources" "">
An example/default DataSource that uses
Oracle JDBC-driver to create the connections.
This tag creates all the needed kinds
of data-sources, transactional, pooled and EJB-aware sources.
The source generally used in application code is the "EJB"
one - it provides transactional safety and connection
pooling. Oracle thin driver could be used as well,
like below.
url="jdbc racle:thin:@host :p ort:sid"

<data-source class="com.evermind.sql.DriverManagerDataSource" name="OracleDS" location="jdbc/OracleCoreDS" xa-location="jdbc/xa/OracleXADS" ejb-location="jdbc/OracleDS" connection-driver="oracle.jdbc.driver.OracleDriver" username="scott" password="tiger" url="jdbc racle:thin:@localhost:5521 racle" inactivity-timeout="30"/>

<data-source class="com.evermind.sql.DriverManagerDataSource" location="jdbc/agencyCoreDS" min-connections="1" username="sa" url="jdbc:microsoft:sqlserver://localhost:1433" xa-location="jdbc/xa/agencyXADS" inactivity-timeout="30" connection-driver="" max-connections="10" name="agencydb" ejb-location="jdbc/agencyDS" password="password" schema="agencydb"><description>DEMO EXAMPLE</description></data-source></data-sources>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "">


<description>Deployment descriptor for default web app</description>

<!-- Standard Action Servlet Configuration -->




<!-- mime mapping -->


<!-- Welcome file -->
<!-- This is the entry point to a site. Change this appropriately -->

<!-- Error pages for standard HTTP error codes -->

<!-- Tag Library Descriptors -->




<?xml version="1.0" standalone='yes'?>
<!DOCTYPE web-site PUBLIC "Oracle9iAS XML Web-site" "">

<!-- change the host name below to your own host name. Localhost will -->
<!-- not work with clustering -->
<!-- also add cluster-island attribute as below
<web-site host="localhost" port="8888"
display-name="Oracle 9iAS Java HTTP WebSite" cluster-island="1" >

<web-site port="8888" display-name="Oracle9iAS Containers for J2EE HTTP Web Site">
<!-- Uncomment the following line when using clustering -->
<!-- <frontend host="your_host_name" port="80" /> -->
<!-- The default web-app for this site, bound to the root -->
<default-web-app application="default" name="defaultWebApp" />
<web-app application="default" name="dms0" root="/dms0" />
<web-app application="default" name="dms" root="/dmsoc4j" />

<web-app application="Agencyapp" name="AgencyWeb" root="/Agencyapp" load-on-startup="true" />
<!-- Access Log, where requests are logged to -->
<access-log path="../log/http-web-access.log" />
<?xml version="1.0"?>
<!DOCTYPE application-server PUBLIC "-//Evermind//DTD Orion Application-server//EN" "">

<application-server localhostIsAdmin="true"
<rmi-config path="./rmi.xml" />
<jms-config path="./jms.xml" />
<file path="../log/server.log" />
<transaction-config timeout="30000" />
<java-compiler name="modern" in-process="false" extdirs="C:\oracle\ora81\jdk\jre\lib\ext" />
<global-application name="default" path="application.xml" />
<application name="BC4J" path="../applications/BC4J.ear" auto-start="true" />
<global-web-app-config path="global-web-application.xml" />
<web-site default="true" path="./default-web-site.xml" />
<cluster id="-320297668" />
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' ''>


when I try to run my application using http://localhost:7777/Agencyapp I was getting 500 error. When i try to run using http://localhost:8888/Agencyapp, port given in http-web-site.xml. I am getting page cannot be found.

I would appreciate if any one could let me know where I am doing fine. I have trying this from 2 days now and exhausted.

I would appreciate if you could give me solutions ASAP.

[edited to disable smilies]
[ July 04, 2004: Message edited by: Jeanne Boyarsky ]
I agree. Here's the link:
subject: Oracle 9i AS and struts!! Urgent
It's not a secret anymore!