Deploying application on OC4J

Hi,
I am deploying a simple web application on OC4J which comes with 9iAS infraStructure installation. I changed server.xml, application.xml, default-web-site.xml & application.xml in the META-INF folder of my app but i couldn't access the appln after starting OC4J. I am attaching the code snippet that i added to these files. Could anyone please let me know if you could figure out the problem here..
Thanks,
Sathya.
j2ee/home/server.xml:
<application name="myapp" path="../applications/myapp" auto-start="true" />
j2ee/home/default-web-site.xml:
<web-app application="myapp" name="web" root="/myapp"/>
j2ee/home/application.xml:
<web-module id="myapp" path="../../home/applications/myapp"/>
myapp/META-INF/application.xml:
<module>
<web>
<web-uri>web</web-uri>
<context-root>/web</context-root>
</web>
</module>

Hi,
I am facing a deployment problem with ear file.
I have prepared an EAR file using Oracle JDeveloper 9.0.5.1.
When I try to deploy it on Oracle 9iAS (Windows platform) it gets deployed successfully.
But when somebody tries to deploy it on Oracle 9iAS (Unix platform) she gets error mentioned below. I have checked the deployment descriptor (web.xml) and found that everything is alright, including the location (WEB-INF/web.xml).
Could anyone please help me find out the problem so that I can fix it?
ADMN-300158
Jar file: /var/tmp/jar24324.tmp is missing its standard xml descriptor located at WEB-INF/web.xml
Jar file: /var/tmp/jar24324.tmp is missing its standard xml descriptor located at WEB-INF/web.xml
oracle.ias.sysmgmt.deployment.j2ee.exception.J2eeDeploymentException: Jar file: /var/tmp/jar24324.tmp is missing its standard xml descriptor located at WEB-INF/web.xml
at oracle.ias.sysmgmt.deployment.j2ee.file.WarFile.<init>(WarFile.java:87)
at oracle.ias.sysmgmt.deployment.j2ee.file.EarFile.init(EarFile.java:561)
at oracle.ias.sysmgmt.deployment.j2ee.file.EarFile.<init>(EarFile.java:88)
at oracle.ias.sysmgmt.deployment.j2ee.file.EarFile.<init>(EarFile.java:74)
at oracle.ias.sysmgmt.deployment.j2ee.console.EarDeployerImpl.<init>(EarDeployerImpl.java:143)
at oracle.ias.sysmgmt.deployment.j2ee.console.WarDeployerImpl.<init>(WarDeployerImpl.java:99)
at oracle.ias.sysmgmt.deployment.j2ee.console.J2eeDeploymentImpl.getWarDeployer(J2eeDeploymentImpl.java:220)
at oracle.ias.sysmgmt.deployment.j2ee.console.J2eeDeploymentImpl.getWarDeployer(J2eeDeploymentImpl.java:247)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.deployApp(DcmCmdLine.java:3728)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.execute(DcmCmdLine.java:4072)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.main(DcmCmdLine.java:4771)
Thanks,
Aatash

Similar Messages

  • Can multipule users deploy application to OC4J on 9iAS r2?

    Is there a way to deploy applications to OC4J through the Enterprise Manager using different user than IAS_ADMIN?
    Thanks
    Marcel

    Hi Marcel,
    In Oracle9iAS R2 9.0.2, ias_admin is the only predefined admin user you can use to deploy an application (the Enterprise Manager website runs on it's own OC4J instance, config files are located in $ORACLE_HOME/sysman/j2ee/config, the admin user ias_admin is defined in $ORACLE_HOME/sysman/j2ee/config/jazn-data.xml). Futre release of Oracle9iAS will allow you to define additional admin users.
    BTW, what's the purpose to deploy applications using a different user?
    Regards,
    Chen.

  • Deploying Application in OC4J 1013 using Ant

    Hello All
    I am trying to deploy my application in OC4J 1013 container using Ant. I am getting
    /view/webappdev3_cruise_view/vobs/Apps/eTA/build_deploy_appl.xml:26: Execute failed: java.io.IOException: /oracle/apps/product/dev/sso/1013/opmn/bin/opmnctl: cannot execute
    I have attached my build.xml file. Please let me know what could be the reason for this.
    Thanks
    Sri
    Edited by: user3539708 on Oct 15, 2009 6:57 PM

    Denis -- This sounds like maybe the RMI port that you are using to connect is the one used by the home instance. Have a look at the other instance you deployed it to and see what RMI port it is using.
    Thanks -- Jeff

  • Error while deploying application in oc4j

    following error message appear when deploying an application
    (1) on consol error message is al folows :
    An error occured while undeploying the application. The configuration files for this Oracle9iAS instance are inconsistent with the configuration stored in the repository. In order to protect the repository, no further configuration or deployment operations are allowed until the problem with the configuration on the filesystem is resolved. This condition arises when a prior operation was unsuccessful. Please check the logs located at ORACLE_HOME/dcm/logs to determine why DCM was unsuccessful in updating the configuration files on disk. Some possible causes are: * permissions on files * file contention issues on Windows NT * EMD and dcmctl running concurrently * internal Oracle error After resolving the problem that prevented DCM from updating the configuration files, you may use the dcmctl resyncInstance command to resolve the problem. Alternatively, you can stop and then restart the active dcmctl or EMD process and resyncInstance will automatically be performed.
    (2) in ora9ias_home\dcm\logs\dcmctl_logs\log.xml and
    ora9ias_home\dcm\logs\emd_logs\log.xml error message is as follows :
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2002-05-07T18:55:16.830+05:30</TSTZ_ORIGINATING>
    <COMPONENT_ID>OC4J</COMPONENT_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_GROUP>n/a</MSG_GROUP>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>HIRED6</HOST_ID>
    <HOST_NWADDR>144.12.16.48</HOST_NWADDR>
    <MODULE_ID>iAS_dcm/oracle/defaultLogger/ExceptionLogger</MODULE_ID>
    <PROCESS_ID>null-Thread[Orion Launcher,5,main]</PROCESS_ID>
    <USER_ID>SYSTEM</USER_ID>
    </HEADER>
    <PAYLOAD>
    <MSG_TEXT>[ RM ] Exception in repository API getDBConnect()</MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[oracle.ias.repository.schema.SchemaException: Unable to connect to Directory Server:javax.naming.CommunicationException: localhost:389 [Root exception is java.net.ConnectException: Connection refused: connect]
         at oracle.ias.repository.directory.DirectoryReader.connect(DirectoryReader.java:104)
         at oracle.ias.repository.IASSchema.getDBConnect(IASSchema.java:331)
         at oracle.ias.repository.IASSchema.getDBConnect(IASSchema.java:416)
         at oracle.ias.repository.SchemaManager.getDBConnect(SchemaManager.java:197)
         at oracle.ias.sysmgmt.persistence.SeedDbAccess.getDBConnect(Unknown Source)
         at oracle.ias.sysmgmt.persistence.PersistenceManager.getSeedInfo(Unknown Source)
         at oracle.ias.sysmgmt.persistence.PersistenceManager.isDBConfigured(Unknown Source)
         at oracle.ias.sysmgmt.task.InstanceManager.sysInit(Unknown Source)
         at oracle.ias.sysmgmt.task.InstanceManager.init(Unknown Source)
         at oracle.ias.sysmgmt.EntryPoint.init(Unknown Source)
         at oracle.sysman.emSDK.eml.util.iAS.IASEntryPoint.initialize(IASEntryPoint.java:98)
         at oracle.sysman.emSDK.eml.svlt.NavCfgHandler.startElement(NavCfgHandler.java:220)
         at org.xml.sax.helpers.ParserAdapter.startElement(ParserAdapter.java:580)
         at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:166)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1082)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:287)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:254)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:141)
         at org.xml.sax.helpers.ParserAdapter.parse(ParserAdapter.java:430)
         at oracle.sysman.emSDK.eml.svlt.EMServlet.init(EMServlet.java:332)
         at oracle.sysman.eml.app.ConsoleSN.init(ConsoleSN.java:87)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:1687)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4020)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4119)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:579)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:376)
         at com.evermind.server.Application.getHttpApplication(Application.java:657)
         at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:663)
         at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:524)
         at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:230)
         at com.evermind.server.http.HttpServer.setSites(HttpServer.java:244)
         at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:147)
         at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:1818)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1154)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:70)
         at java.lang.Thread.run(Thread.java:484)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:49)
    ]]></SUPPL_DETAIL>
    </PAYLOAD>
    </MESSAGE>
    Urgent solution required

    welcome to the club - reintalling ias90x.
    seriously, after reinstalling oracle, disable em interface. never use it again.
    use
    $oraclehome\dcm\bin\dcmctl dcmctl saveinstance -directory somedir
    $oraclehome\dcm\bin\dcmctl deployapplication blah blah..
    if something goes wrong,
    $oraclehome\dcm\bin\dcmctl restoreinstance
    read up on how to use dcmctl.
    Ken

  • Error while deploy application in OC4J version 10.1.3.2

    I have the OC4J version 10.1.3.2, I trying deploy the java application, but I have some problem. Somebody help-me? please, help into [email protected]. Thank you!
    The messange from error in console:
    [java] 06/07/2007 16:32:35 oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES
    FROMTHE_REMOTE_SERVER
    [java] WARNING: Exceção retornada pelo servidor remoto: {0}
    [java] java.rmi.RemoteException: bindWebApp() failed!; nested exception is:
    [java] oracle.oc4j.admin.internal.DeployerException: Unknown site: http-web
    -site
    [java] Active sites are:
    [java] file:/C:/oc4j101320/j2ee/home/config/default-web-site.xml
    [java] at com.evermind.server.administration.DefaultApplicationServerAdmini
    strator.bindWebApp(DefaultApplicationServerAdministrator.java:420)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI
    mpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA
    ccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(R
    eleasableResourcePooledExecutor.java:303)
    [java] at java.lang.Thread.run(Thread.java:534)
    [java] Caused by: oracle.oc4j.admin.internal.DeployerException: Unknown sit
    e: http-web-site
    [java] Active sites are:
    [java] file:/C:/oc4j101320/j2ee/home/config/default-web-site.xml
    [java] at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApp
    licationBinder.java:191)
    [java] at com.evermind.server.administration.DefaultApplicationServerAdmini
    strator.bindWebApp(DefaultApplicationServerAdministrator.java:418)
    [java] ... 7 more
    [java] Error: bindWebApp() failed!; nested exception is:
    [java] oracle.oc4j.admin.internal.DeployerException: Unknown site: http-web
    -site
    [java] Active sites are:
    [java] file:/C:/oc4j101320/j2ee/home/config/default-web-site.xml
    [java] Java Result: 17

    user583805,
    As it tells you in the error message:
    File "http-web-site.xml" is replaced by file "default-web-site.xml" in OC4J 10.1.3.x
    Good Luck,
    Avi.

  • Problem: Deploying application in OC4J

    HELP ME!!!
    I'm deploy j2ee application which is a simple SessionBean, to my OC4J container (for example, OC4J_my)
    Then I try to start this application via JDeveloper903.
    Application fails with next error:
    javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: No such domain/application: OC4J_432/ejb1; nested exception is:
         javax.naming.AuthenticationException: No such domain/application: OC4J_432/ejb1
         java.lang.Object com.evermind.server.rmi.RMIContext.lookup(java.lang.String)
              RMIContext.java:134
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
              InitialContext.java:350
         void Samplemypackage2.MySessionEJBClient.main(java.lang.String[])
              MySessionEJBClient.java:18

    Denis -- This sounds like maybe the RMI port that you are using to connect is the one used by the home instance. Have a look at the other instance you deployed it to and see what RMI port it is using.
    Thanks -- Jeff

  • Exception when i try to deploy application to OC4J

    Hi
    Thank you for reading my post
    i get the following exception when i try to deploy the application from Jdeveloper 10.1.3.1 to the same application server. that i download and install.
    Binding web application(s) to site default-web-site begins...
    Binding register web-module for application register to site default-web-site under context root register-register-context-root
    Exception:  NoClassDefFoundError:  oracle/jbo/JboException
    Operation failed with error:
    oracle/jbo/JboException

    Did you install adf runtime (tools -> adf runtime installer ->standalone oc4j)?

  • Help!A problem of deploying application to oc4j of oracle9ias!

    I have used jdeveloper to create an application.It is a
    simple servlet application to connect the database in
    another host.It runs correctly.But now I want to deply it on the oracle9ias in the host in which the database reside.
    I see the online help.It says that the next step is to
    create a connection named connect1 and a deploy file which is deployed to this connection.This connection is ok.But when i select the option "deployed to connect1",
    it shows the error like this:
    Wrote WAR file to E:\Oradev\jdev\mywork\test\test\test.war
    Wrote EAR file to E:\Oradev\jdev\mywork\test\test\test.ear
    Invoking Oracle9iAS admin tool...
    E:\Oradev\jdk\jre\bin\javaw.exe -jar E:\Oradev\j2ee\home\admin.jar ormi://server.oracle9i.com:3101/ admin **** -deploy -file E:\Oradev\jdev\mywork\test\test\test.ear -deploymentName test
    Security error: This operation was denied. The admin.jar utility can not be used to perform operations against OPMN managed OC4J instnaces. Please use Enterprise Manager or dcmctl instead. Refer to the Oracle9iAS Admin Guide or the OC4J User's Guide for more details.
    Exit status of Oracle9iAS admin tool (-deploy): 1

    What type of Application Server connection did you choose ?
    Following is the how-to document which might come handy.
    http://otn.oracle.com/products/jdev/howtos/appservers/deployias.html#connection
    raghu
    JDev Team

  • Urgent - Unable to deploy applications to oc4j

    Hi
    I am not able to do any thing on the server, I cannot create new oc4j instance, remove application or deploy a new ear file.
    Earlier I tried increase the memory by using
    OC4J instance -. Administration - >Server Properties -> Java options added the string -Xms512Mm -Xmx12m, looks like while doing so a junk character / multi lingual charcter was pasted instead of "-". I Copied and pasted this from some article. Thats when the server started behaving like this.
    We have seen the special charcter in opmn.xml file as well as opmn.xml.bak file.
    Server is getting started when we have removed the above opton from both the files. but we are not able to deploy or make any changes to ear/war files.
    I am getting below error message:
    An error occured while undeploying the application. The configuration files for this Oracle Application Server instance are inconsistent with the
    configuration stored in the repository. In order to protect the repository,
    no further configuration or deployment operations are allowed until the problem with the configuration on the filesystem is resolved. This condition arises when a prior operation was unsuccessful. The exception associated with this failed operation is:
    {0}
    . Please also check the logs located at
    ORACLE_HOME/dcm/logs to determine why DCM was unsuccessful in updating
    the configuration files on disk. Some possible causes are:
    * permissions on files
    * file contention issues on Windows NT
    * internal Oracle error
    After resolving the problem that prevented DCM from updating the configuration
    files, you may use the dcmctl resyncInstance command to resolve the problem.
    Alternatively, you can stop and then restart the active dcmctl or EMD
    process and resyncInstance will automatically be performed.
    Resolution:
    Base Exception:
    java.net.ConnectException
    Connection refused. Connection refused
    Appreciate your help on this regard.
    thanks
    Prasad

    Also,
    When I ran the command dcmctl error I am getting the response ADMN-906001

  • Deploying application from oc4j to weblogic

    while creating a new connection(by rt clicking the webapp.deploy) and then after i click testconnection i am getting the error cannot instantiate class: weblogic.jndi.WeblogicInitialContextFactory
    plz help
    ruchi

    Please refer to a previous post:
    Cannot instantiate class: weblogic.jndi.WLInitialContextFactory

  • Deploy one Application per OC4J instance or multiple

    Hello,
    I have the following questions on deploying applications on OC4J:
    1. What is the best practice for deploying applications on OC4J?
    2. Should I deploy only One application per OC4J Instance or multiple applications per OC4J Instance.
    3. If I decide to deploy more then one application on one OC4J Instance, for this OC4J Instance, should I increase default_island property to add the number of processes within an OC4J Instance
    Thanks,
    Manish

    You really should read the 9iAS Performance and Tuning Guide. There is no specific recommendation. It is
    highly dependent on your specific applications.
    You can deploy more than one application per OC4J instance and if you have a high performance machine you will probably want to run more than one JVM per OC4J
    instance. If you are running applications which create sessions and replicate state across JVM's then
    you may want to create multiple islands to limit the scope of replication.

  • Invalid Provider URL deploying axis webservice application on OC4J 10.1.3

    Hi,
    I have an enterprise webservice application using axis running fine with OC4J 9.0.4. I tried to deploy it in OC4J 10.1.3 and it gives ConfigurationException inside axis. I tried both axis 1.3 and 1.4 and still has the same issue. Axis is catching the exception and throwing it out as a runtime exception: Invalid Provider URL. I tried to google it, but didn't found much help. Did anyone had similar problem like this.
    Thanks in Advance,
    Chandu

    Chandu,
    Perhaps you could post the entire error message and stack trace you are getting, as well as the part of your code that is causing the error? Are you using JDK 1.4 or JDK 1.5?
    Good Luck,
    Avi.

  • Sort order in Java Application (deploy in Oracle oc4j container)

    I have a Java application deploy in Oracle OC4J container (EAR file).
    In my Java application (jsp), I have a SQL statement who return data but the
    sort order is wrong. The letters "é" and all characters with accents
    appears at the end of the result.
    I tried many things to change the sort order (NLS parameters in database
    and OAS10g parameter files).
    When I use SQL*plus on database server, that's working.
    The sort order is wrong when I use the java application.
    Somebody can tell me what and where is the NLS parameters to change ?
    Thanks
    Robin

    Robin,
    I'm only guessing, but it could either be related to the java locale or the CHARSET attribute of the HTML header -- and nothing to do with the NLS parameters.
    Maybe you should try the Globalization Support forum?
    Good Luck,
    Avi.

  • Deploying a jsp application in OC4J

    Hi All,
    In 9iAS Release 2, can i run a jsp without deploying it on OC4J(i.e, without creating a war file, web.xml and deploying it using the Enterprise Manager deployment wizard). I need to know if there is any other way i can run a jsp. I assume that i dont need to "deploy" a JSP if i use jserv but i would want to stick onto OC4J.
    Regards,
    Sreedhar

    In R2, this is simple if your application contains plain JSPs http://<server>:7777/j2ee/simple.jsp will run each JSP and they can be called from each other by filename. If you are deploying an app with a Java archive, you may need to follow specific deployment instructions for the archive type.
    Note: If your configuration is different, replace '7777' with whatever port Apache is at.

  • Is anyone deployed forms application to OC4J? let me know how that works

    Hello Everyone,
    I am new to OC4J and I am trying to learn about deploying forms applications .fmx files to Oracle Application Server (OC4J). Can someone who had tried this tell me how to go about it.
    Please feel free to e-mail me at [email protected] if that is convenient for you.

    Hi,
    System will pick up the condition record for each condition type based on the access sequence assineg to that consition type.
    For e.g.
    Condition type PB00
    We have access sequence (0002 )for this condition type so system willl first search for condition record maintained for outline agreement (plant specific) then for contact then inforecord.
    System goes in this sequence. Also we have exclusive indicator so when it finds the condtion record for first access sequnce then its stops and it wil not search the next condition record.
    So if i have maitained condition record for contract and also for info record system will take price from contract and not from info record baased on this sequence for given validity period.
    Regards,
    Shailesh

Maybe you are looking for

  • Asio Driver issue in Premiere Pro CC conflicting with all other media players on PC

    Whenever I have Premiere or audition or After effects opened---- should I want to play a media clip on J River Media center, or Windows Media Player, the Asio driver is locked by the Adobe products, so the other media players do not have access to it

  • Using multiple pens with Photoshop CS4

    Hello, as some of you already know, in older Photoshop versions (5.0 and 5.5) there was a possibility to use multiple pens with the help of the old Wacom Tool-ID Plugin. Isn't there any way to port this old plugin to Photoshop CS4? I would like to us

  • Huge discrepancies in Disk Usage

    Hi there This has probrably been asked before but I wasn't able to find a discussion on this subject; My Mac Mini seems to be registering that there is more data in my User folder than is actually there. When I use Get Info on my User folder it says

  • Percentage calculation problem

    Hi, I have a requirement in report. rows char reason columns i have no of emp for each reason and % (no of emp for each reason / total no of emp for all reasons) How to pass the value total no of emp for all reasons to get the value for  the column %

  • Issue with Flex Profiling

    I am trying to run memory profiling for a flex application. But when I run the profiler, it does not open up the window for me to select options to do profiling on. I followed a link on http://stackoverflow.com/questions/2354891/flex-profiler-doesnt-