gkaindia.com

Home > > Data sources in deploying web app. to Oracle Application Server

Data sources in deploying web app. to Oracle Application Server

Advertisement
I am using simple web application - JSP with BC4J (JDeveloper 9.0.5.1).
I want to configure my application to use Data Source instead of JDeveloper connection and deploy it to production database, so DB administrator will take care of username and password.
First, I create a new application module configuration that uses a data source instead of a JDeveloper connection with BC config. name TestAppModuleWithDS.
Then I modify my application client (DataBindings.cpx) to use the new configuration (TestAppModuleWithDS).
After that I create deployment profile and deploy to application server connection and try to test it on standalone server, and on production server together with my DBA.
But the application is not running, always displaying error messages...
Please what is the procedure and how to set Config of ApplModule.
It is working properly with embeded server, but on standalone server there is an error:
java.lang.UnsupportedClassVersionError: oracle/jdeveloper/cm/ConnectionDescriptor (Unsupported major.minor version 48.0)
     at java.lang.ClassLoader.defineClass0(Native Method)
     at java.lang.ClassLoader.defineClass(Unknown Source)
     at java.security.SecureClassLoader.defineClass(Unknown Source)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureClassLoader.java:172)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].naming.ContextClassLoader.defineClass(ContextClassLoader.java:1154)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].naming.ContextClassLoader.findClass(ContextClassLoader.java:390)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].naming.ContextClassLoader.loadClass(ContextClassLoader.java:138)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClassInternal(Unknown Source)
     at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:271)
     at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:473)
     at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:165)
     at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:817)
     at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:169)
     at lastcoil.jspService(_testjsp.java:52)
     [SRC:/testjsp.jsp:11]
     at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
     at java.lang.Thread.run(Unknown Source)
Application module in testjsp.jsp (_testjsp.java) is:
oracle.jbo.html.jsp.datatags.ApplicationModuleTag __jsp_taghandler_1=(oracle.jbo.html.jsp.datatags.ApplicationModuleTag)OracleJspRuntime.getTagHandler(pageContext,oracle.jbo.html.jsp.datatags.ApplicationModuleTag.class,"oracle.jbo.html.jsp.datatags.ApplicationModuleTag id configname releasemode");
__jsp_taghandler_1.setParent(null);
__jsp_taghandler_1.setId("TestAppModule");
__jsp_taghandler_1.setConfigname("test.TestAppModule.TestAppModuleWithDS");
__jsp_taghandler_1.setReleasemode("Stateful");
__jsp_tag_starteval=__jsp_taghandler_1.doStartTag();
if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))
DataBindings.cpx is configured like this:
?xml version='1.0' encoding='windows-1252' ?>
<JboProject
id="DataBindings"
xmlns="http://xmlns.oracle.com/adfm/application"
version="9.0.5.15.88"
SeparateXMLFiles="false"
Package=""
ClientType="JClient" >
<Contents >
<DataControl
id="TestAppModule"
SubType="DCBC4J"
SupportsFindMode="true"
SupportsTransactions="true"
Package="test"
FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl"
Configuration="TestAppModuleWithDS" >
<Parameters >
<Parameter
name="Sync"
value="Batch" >
</Parameter>
</Parameters>
</DataControl>
</Contents>
</JboProject>
D:\JDeveloper10\j2ee\home\config\data-sources.xml je:
<?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:oracle:thin:@host:port: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:oracle:thin:@localhost:5521:oracle"
          inactivity-timeout="30"
     />
     <data-source
          class="com.evermind.sql.DriverManagerDataSource"
          name="TestAppModuleWithDS"
          location="jdbc/hmlCoreDS"
          xa-location="jdbc/xa/hmlXADS"
          ejb-location="jdbc/hmlDS"
          connection-driver="oracle.jdbc.driver.OracleDriver"
          username="user1"
          password="psw1234"
          url="jdbc:oracle:thin:@server.com:1521:sidname"
          inactivity-timeout="30"
     />
D:\HotStripMill Projects\bc4j\src\lastcoil\common\bc4j.xcfg
<?xml version = '1.0' encoding = 'UTF-8'?>
<BC4JConfig>
<AppModuleConfigBag>
<AppModuleConfig name="TestAppModuleWithDS">
<DeployPlatform>LOCAL</DeployPlatform>
<JDBCDataSource>jdbc/hmlCoreDS</JDBCDataSource>
<jbo.project>bc4j</jbo.project>
<AppModuleJndiName>test.TestAppModule</AppModuleJndiName>
<java.naming.factory.initial>oracle.jbo.common.JboInitialContextFactory</java.naming.factory.initial>
<ApplicationName>test.TestAppModule</ApplicationName>
</AppModuleConfig>
</AppModuleConfigBag>
<ConnectionDefinition name="hml">
<ENTRY name="JDBC_PORT" value="1521"/>
<ENTRY name="ConnectionType" value="JDBC"/>
<ENTRY name="HOSTNAME" value="server.com"/>
<ENTRY name="user" value="user1"/>
<ENTRY name="ConnectionName" value="hml"/>
<ENTRY name="SID" value="sidname"/>
<ENTRY name="JdbcDriver" value="oracle.jdbc.driver.OracleDriver"/>
<ENTRY name="password">{904}05437B2C11AE10318B521E7C6EE279666E</ENTRY>
<ENTRY name="ORACLE_JDBC_TYPE" value="thin"/>
<ENTRY name="DeployPassword" value="true"/>
</ConnectionDefinition>
</BC4JConfig>
</data-sources>
Thanks!
Advertisement
iAS 1.0.x is StoneAge Technology (TM).
Using the E-Business Suite you should look into the newer versions of the Application Server. I believe that 10.1.2.x supports the EBS, otherwise 9.04 should do the trick. Webservice support is much better in the newer versions. 1.0.x is from around 2000/2001 so the Webservice technology back than was "different" :-)
cu
Andreas
Read the other 3 answers
Hi, I am not sure whether this is the forum where I should post this question. I am trying to deploy a webservice on Oracle iAS version1.0.0. But when I navigate to Oracle CRM Administrator(responsibility)-->Integration-->services I get a message te
Hi everyone, I followed the instructions of the following link to create a web service using jDeveloper 10.1.3.1.0 on Oracle Application Server 10.1.2.0.2. [http://st-curriculum.oracle.com/obe/jdev/obe1013jdev/10131/devdepandmanagingws/devdepandmanag
Hi; I was able to create the .wsdl file from Elipse using Java 1.3. I was not able to connect to the oracle Application server from eclipse is there any other way to deploy the web server. Can anyone advise with the steps to deploy a web service on O
Since oracle has chosen to release adf faces 11g, before the SOA suite 11g is released, we are facing the challenge to run both Oracle Web logic and Oracle Application Server 10g on the same server. If anyone have any experience in this setup or has
Hi All.... can anyone explain me the *"Difference between Oracle 11i Apps DBA & Oracle Application server 10g DBA"* Can Oracle 11i Apps DBA work in a Oracle Application server 10g DBA environment. Regards,Oracle Apps is a suite of financial
Hi, it is possible to deploy a web services generated by axis on Oracle Application server ? and if it is how ? Thanks,Hello again. Thx for the reply. I have all specfic Libraries in my ear file, but i don't get the problem solved. I can see the exam
hey folks. i've deployed a web app (i can see it in the console under "web apps"). i want to make this web app the default for my server. i went to the "target" tab for the web app and made my server the target. however, when i go to m
Hi, I am new to implementing security features on the web applications.. I have developed a new web service using jdev1012 and deployed in OAS 10.1.2. Its working fine according to the business requirements, but I am in need of implementing client-ce
I have installed Oracle 10g Application server, donwloaded and installed JDevleoper 9.0.5.1 and the latest Java Portal Development and as well as the JDeveloper portlet-addin. Now, I followed the instructions from the http://portalstudio.oracle.com/p
Hi, i m trying to deploy EAR on Oracle Application Server but i m getting ther Error Operation failed with error: Missing class: oracle.adf.controller.v2.lifecycle.PagePhaseListener Dependent class: any body know that what is this error plz help me H
Hello folks, I am trying to deploy an application containing jsps and servlets packaged into EAR using ant. However when am trying to do so by using the Deploy EAR option in the Enterprise manager, it throws the following error - "Invalid J2EE applic
Hi, I need to deploy an IBM EAR to Oracle Application Server 10G. When i'm trying to deploy I get this message. Deployment failed: The evaluate phase failed. The Adapter used in the evaluate may have thrown an exception. Resolution: Please call Oracl
hi, We have some Oracle discoverer running in the oracle application server and I would like to deploy one war file to the service. Can anyone tell me if its possible to do so? Should I just drop the war to the deploy folder of the server? Thanks, KK
Has anyone deployed Shared Services (9.3.1) in Oracle Application Server? We are trying to deploy SS in Oracle Application Server and are not able to do it. Any suggestions?I think SS work's only under Apache Tomcat I was try deploy SS 9.2.1 and 9.3.
I'm using 11g JDeveloper 11.1.1.1.0 and I got the below errors when I tried to deploy a web app to the default weblogic server. Do you have any idea? [03:19:04 PM] ---- Deployment started. ---- [03:19:04 PM] Target platform is (Weblogic 10.3). [03:19
Developed Asp 2 app in a Windows 2003 server environment with VS 2005 and an upgraded full version of Crystal Reports 2008. Installed full version of Crystal Reports 2008 on Windows server 2008. Copied Web app over to Windows 2008 server. App comes u
I have made an ESB project in JDEV. Now on client site we do not have Jdeveloper. How do I deploy my application on the server. I am not even able to export my project from JDev. Please tell me in which format the project is to be exported and how do
Hi Everybody How to deploy jee5 application on Netweaver Application Server without using Netweaver Developer Studio NWDS. Thank You Syed SaifuddinHi Prashil, That blog is about deployment on Web AS 6.40. Here we are discussing the <a href="https:
Hi !! I am a little known with oracle database. But recently i have been asked to update my skills with oracle apps and oracl e application server. I do not have any prior experience with these products of oracle and I really have 0 knowledge of it.