File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Oracle 9i AS and struts!! Urgent" Watch "Oracle 9i AS and struts!! Urgent" New topic
Author

Oracle 9i AS and struts!! Urgent

Saritha Penumudi
Ranch Hand

Joined: Aug 18, 2003
Posts: 147
Hello,

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" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
<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="com.microsoft.jdbc.sqlserver.SQLServerDriver" 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" "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

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

<!-- Standard Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>

<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>

<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

<!-- mime mapping -->

<mime-mapping>
<extension>css</extension>
<mime-type>text/css</mime-type>
</mime-mapping>

<!-- Welcome file -->
<!-- This is the entry point to a site. Change this appropriately -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

<!-- Error pages for standard HTTP error codes -->
<error-page>
<error-code>403</error-code>
<location>index.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>unavailable.html</location>
</error-page>

<!-- Tag Library Descriptors -->
<taglib>
<taglib-uri>/WEB-INF/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/WEB-INF/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/WEB-INF/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/WEB-INF/struts-template</taglib-uri>
<taglib-location>/WEB-INF/struts-template.tld</taglib-location>
</taglib>

<ejb-ref>
<ejb-ref-name>AgencyEJB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>agency.server.AgencyHome</home>
<remote>agency.server.Agency</remote>
</ejb-ref>
</web-app>
---------------------------
<?xml version="1.0" standalone='yes'?>
<!DOCTYPE web-site PUBLIC "Oracle9iAS XML Web-site" "http://xmlns.oracle.com/ias/dtds/web-site.dtd">

<!-- 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" />
</web-site>
-----------------------------------
<?xml version="1.0"?>
<!DOCTYPE application-server PUBLIC "-//Evermind//DTD Orion Application-server//EN" "http://xmlns.oracle.com/ias/dtds/application-server.dtd">

<application-server localhostIsAdmin="true"
application-directory="../applications"
deployment-directory="../application-deployments"
connector-directory="../connectors"
>
<rmi-config path="./rmi.xml" />
<jms-config path="./jms.xml" />
<log>
<file path="../log/server.log" />
</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" />
</application-server>
------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
<application>
<display-name>AgencyExample</display-name>
<module>
<ejb>AgencyEjb.jar</ejb>
</module>
<module>
<web>
<web-uri>AgencyWeb.war</web-uri>
<context-root>/</context-root>
</web>

</module>
</application>
------------------------------------

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: http://aspose.com/file-tools
 
subject: Oracle 9i AS and struts!! Urgent