Can't Complete Deployment to OC4J Standalone

I have successfully deployed 3 projects to OC4J standalone on a Win2k box. I have now set up OC4J on a Sun box. I have deployed 2 of the (basic) web apps sucessfully, but the third, which consists of an EJB/BC4J project and a servlet/JSP project, does not completely deploy. All files are written to the correct directories as far as I can see, but the app info is not written to the config files. In JDev, there are no messages after the deployment command line. It hangs until I kill the admin tool.
Any help would be appreciated.

Can you verify the JAVA_HOME, sometime, when you deploy an EJB application, OC4J need compile it.

Similar Messages

  • Error deploying to oc4j standalone

    hi folks,
    i'm trying to deploy my application from jdev to standalone oc4j.
    i created a war, an ejb-jar and an ear that includes them. while trying to deploy the ear i get the following exception:
    2006-11-30 14:54:48.265 NOTIFICATION Starting application : wts2
    2006-11-30 14:54:48.265 NOTIFICATION Initializing ClassLoader(s)
    2006-11-30 14:54:48.265 NOTIFICATION Initializing EJB container
    2006-11-30 14:54:48.265 NOTIFICATION Loading connector(s)
    2006-11-30 14:54:48.343 NOTIFICATION Starting up resource adapters
    2006-11-30 14:54:48.359 NOTIFICATION Processing EJB module: wts2_ejb_jar.jar
    2006-11-30 14:54:48.656 ERROR J2EE EJB-03027 [wts2] An error occured deploying E
    JB module: javax.ejb.EJBException: nested exception is: java.lang.reflect.Invoca
    tionTargetException
    2006-11-30 14:54:48.671 NOTIFICATION application : wts2 is in failed state
    06/11/30 14:54:48 WARNING: Application.setConfig Application: wts2 is in failed
    state as initialization failed.
    java.lang.InstantiationException: Error initializing ejb-modules: nested excepti
    on is: java.lang.reflect.InvocationTargetException
    06/11/30 14:54:48 oracle.oc4j.admin.internal.DeployerException: java.lang.Instan
    tiationException: Application: wts2 is in failed state as initialization failed
    06/11/30 14:54:48 at oracle.oc4j.admin.internal.ApplicationDeployer.addApp
    lication(ApplicationDeployer.java:515)
    06/11/30 14:54:48 at oracle.oc4j.admin.internal.ApplicationDeployer.doDepl
    oy(ApplicationDeployer.java:196)
    06/11/30 14:54:48 at oracle.oc4j.admin.internal.DeployerBase.execute(Deplo
    yerBase.java:93)
    06/11/30 14:54:48 at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeploy
    erRunnable.doRun(OC4JDeployerRunnable.java:52)
    06/11/30 14:54:48 at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRu
    nnable.run(DeployerRunnable.java:81)
    06/11/30 14:54:48 at com.evermind.util.ReleasableResourcePooledExecutor$My
    Worker.run(ReleasableResourcePooledExecutor.java:298)
    06/11/30 14:54:48 at java.lang.Thread.run(Thread.java:595)
    06/11/30 14:54:48 Caused by: java.lang.InstantiationException: Application: wts2
    is in failed state as initialization failed
    06/11/30 14:54:48 at com.evermind.server.Application.setConfig(Application
    .java:471)
    06/11/30 14:54:48 at com.evermind.server.Application.setConfig(Application
    .java:314)
    06/11/30 14:54:48 at com.evermind.server.ApplicationServer.addApplication(
    ApplicationServer.java:1853)
    06/11/30 14:54:48 at oracle.oc4j.admin.internal.ApplicationDeployer.addApp
    lication(ApplicationDeployer.java:512)
    06/11/30 14:54:48 ... 6 more
    06/11/30 14:54:48 Caused by: java.lang.InstantiationException: Error initializin
    g ejb-modules: nested exception is: java.lang.reflect.InvocationTargetException
    06/11/30 14:54:48 at com.evermind.server.ejb.EJBContainer.postInit(EJBCont
    ainer.java:1064)
    06/11/30 14:54:48 at com.evermind.server.ApplicationStateRunning.initializ
    eApplication(ApplicationStateRunning.java:217)
    06/11/30 14:54:48 at com.evermind.server.Application.setConfig(Application
    .java:413)
    06/11/30 14:54:48 ... 9 more
    06/11/30 14:54:48 Caused by: javax.ejb.EJBException: nested exception is: java.l
    ang.reflect.InvocationTargetException
    06/11/30 14:54:48 at com.evermind.server.ejb.EJBUtils.createEJBException(E
    JBUtils.java:365)
    06/11/30 14:54:48 at com.evermind.server.ejb.EJBUtils.createEJBException(E
    JBUtils.java:356)
    06/11/30 14:54:48 at com.evermind.server.ejb.BeanAnnotationListener.parseA
    nnotatedClass(BeanAnnotationListener.java:54)
    06/11/30 14:54:48 at com.evermind.server.ejb.AnnotationParser.notifyAnnota
    tionListeners(AnnotationParser.java:201)
    06/11/30 14:54:48 at com.evermind.server.ejb.AnnotationParser.parseAnnotat
    ions(AnnotationParser.java:73)
    06/11/30 14:54:48 at com.evermind.server.ejb.EJBPackageDeployment.parseMet
    aData(EJBPackageDeployment.java:939)
    06/11/30 14:54:48 at com.evermind.server.ejb.EJBContainer.postInit(EJBCont
    ainer.java:832)
    06/11/30 14:54:48 ... 11 more
    06/11/30 14:54:48 Caused by: java.lang.reflect.InvocationTargetException
    06/11/30 14:54:48 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    06/11/30 14:54:48 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMet
    hodAccessorImpl.java:39)
    06/11/30 14:54:48 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Deleg
    atingMethodAccessorImpl.java:25)
    06/11/30 14:54:48 at java.lang.reflect.Method.invoke(Method.java:585)
    06/11/30 14:54:48 at com.evermind.server.ejb.BeanAnnotationListener.parseA
    nnotatedClass(BeanAnnotationListener.java:45)
    06/11/30 14:54:48 ... 15 more
    06/11/30 14:54:48 Caused by: java.lang.NoClassDefFoundError: Lorg/apache/log4j/L
    ogger;
    06/11/30 14:54:48 at java.lang.Class.getDeclaredFields0(Native Method)
    06/11/30 14:54:48 at java.lang.Class.privateGetDeclaredFields(Class.java:2
    232)
    06/11/30 14:54:48 at java.lang.Class.getDeclaredFields(Class.java:1715)
    06/11/30 14:54:48 at com.evermind.server.deployment.AnnotationManager.pars
    e(AnnotationManager.java:112)
    06/11/30 14:54:48 at com.evermind.server.deployment.AnnotationManager.getM
    ethods(AnnotationManager.java:64)
    06/11/30 14:54:48 at com.evermind.server.ejb.deployment.BeanDescriptorAnno
    tationParser.parseAnnotations(BeanDescriptorAnnotationParser.java:76)
    06/11/30 14:54:48 at com.evermind.server.ejb.deployment.BeanDescriptorAnno
    tationParser.parseAnnotations(BeanDescriptorAnnotationParser.java:48)
    06/11/30 14:54:48 ... 20 more
    2006-11-30 14:54:48.718 NOTIFICATION Application Deployer for wts2 FAILED.
    i don't know if this can be connected to the following issue: i have another java environment on the same machine and therefore 2 different jdks: 1.4 and 5. the JAVA_HOME points to jdk1.4. but the batch file running the oc4j starts it with jdk5:
    C:\Sun\AppServer\jdk\bin\java.exe -jar D:\oc4j\j2ee\home\oc4j.jar
    i've seen a thread here saying that problems with InvocationTargetException can be solved by using Oracle AppServer instead of OC4J, which sounds pretty bizzare to me. there are a lot of folks here who run and deploy into OC4J with no problem.
    thanks for you help!

    i am still facing the same problem all peoples face
    is ther any way to fix it???????
    if u find a solution i will apretiate if u tell me
    coz am trying to make a webservice to try it with jdeveloper over oc4j
    and as u know there is a test way provided by jdeveloepr to test ur webservice after publishing it
    after i compliled the calsses and deploy it and open the url http://localhost:8888/jdeveloper_ap...webservice_name
    and evry thing is ok till now and the page apear carying the method services name and when i click the method servic ename evry thing is still ok and the form apear requesting the input of the method if any with an invoke button or with the invoke button alone if no input was required and 2 link below the Proxy Jar and the Proxy Source so till now evry thing is ok
    but after i press the invoke button or when i press the link proxyjar or Proxy Source the explorer show the usual error page HTTP 500 - Internal server error Internet Explorer so nothing work till the end
    does any one expert in webservices with jedeveloepr know what do i miss to set so that the trial work?

  • Ear file deploys on oc4j standalone, not on ias using the ent.appl.manager

    We added security constraints to our web.xml, and this works when we deploy it on a standalone OC4J. Deploying this ear on the ias with the Enterprise application Manager: after choosing the ear-file, giving it a name and pushing the next button we get a nullpointer-exception.
    After removing the security constraints the deployment works. Any ideas????
    Eelco

    To be complete, here's the web.xml:
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <!-- This file contains the configuration for a web-application.-->
    <web-app>
    <distributable />
    <display-name>Laris Application</display-name>
    <description>Laris Application</description>
    <env-entry>
         <description>Database connection string</description>
         <env-entry-name>dbconnect</env-entry-name>
         <env-entry-value>jdbc:oracle:thin:&lt;user&gt;&lt;pwd&gt;@&lt;host&gt;:&lt;port&gt;:&lt;sid&gt;</env-entry-value>
         <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    <env-entry>
         <description>Dtd locatie string</description>
         <env-entry-name>dtd_url</env-entry-name>
         <env-entry-value>http://&lt;host&gt;:&lt;port&gt;/laris/dtd/</env-entry-value>
         <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    <servlet>
    <servlet-name>LarisController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>StartLarisService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>PortaalController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>PortaalService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>InvoerenAanspraakController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>InvoerenAanspraakService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>ControlerenAanspraakController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>ControlerenAanspraakService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>BeoordelenAanspraakController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>BeoordelenAanspraakService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>BeslissenAanspraakController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>BeslissenAanspraakService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>BehandelenAanspraakController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>BehandelenAanspraakService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>CommunicatieGeneratorController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>CommunicatieGeneratorService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>KruisjestabelController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>KruisjestabelService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>CitesController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>LarisService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>BaBoSSController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>LarisService.xml</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>LarisController</servlet-name>
    <url-pattern>Default/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>PortaalController</servlet-name>
    <url-pattern>Portaal/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>InvoerenAanspraakController</servlet-name>
    <url-pattern>Portaal/InvoerenAanspraak/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ControlerenAanspraakController</servlet-name>
    <url-pattern>Portaal/ControlerenAanspraak/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>BeoordelenAanspraakController</servlet-name>
    <url-pattern>BeoordelenAanspraak/Eenvoudig/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>BeslissenAanspraakController</servlet-name>
    <url-pattern>Beslissen/VaststellenBeslissing/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>BehandelenAanspraakController</servlet-name>
    <url-pattern>Behandelen/AdministratiefControleren/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>CommunicatieGeneratorController</servlet-name>
    <url-pattern>Informeren/CommunicatieGenerator/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>KruisjestabelController</servlet-name>
    <url-pattern>Kruisjestabel/Kruisjestabel/StartIt</url-pattern>
    </servlet-mapping>
    <!-- security roles -->
    <security-role>
         <role-name>sr_manager</role-name>
    </security-role>
    <security-role>
         <role-name>sr_developer</role-name>
    </security-role>
    <!-- security constraints -->
    <security-constraint>
    <web-resource-collection>
    <url-pattern>cabo/*</url-pattern>
    <url-pattern>jheadstart/*</url-pattern>
    <url-pattern>help/*</url-pattern>
    <url-pattern>laris/*</url-pattern>
    <url-pattern>images/*</url-pattern>
    <url-pattern>uix/*</url-pattern>
    </web-resource-collection>
    <!-- authorization -->
    <!-- <auth-constraint>
    <role-name>sr_developer</role-name>
    </auth-constraint> -->
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <url-pattern>Default/*</url-pattern>
    <url-pattern>Portaal/*</url-pattern>
    <url-pattern>Informeren/*</url-pattern>
    <url-pattern>Behandelen/*</url-pattern>
    <url-pattern>Beslissen/*</url-pattern>
    <url-pattern>BeoordelenAanspraak/*</url-pattern>
    <!-- volgende is wel gewenst (in 1 keer alles beveiligen), maar werkt niet
    <url-pattern>*</url-pattern> geeft error bij createmarlinbeanpag
    <url-pattern>*/*</url-pattern> beveiligt gewoon niet
    <url-pattern>./*</url-pattern> beveiligt niet alles
    <url-pattern>./*/*</url-pattern> beveiligt niet(s)
    <url-pattern>../*</url-pattern> beveiligt niets
    -->
    </web-resource-collection>
    <!-- authorization -->
    <auth-constraint>
    <role-name>sr_developer</role-name>
    </auth-constraint>
    </security-constraint>
    <!-- de volgende security constraint is niet zozeer voor de administrator
    maar om er voor te zorgen dat bovenstaande constraint de toegang
    beperkt tot alleen het gedefinieerde -->
    <security-constraint>
    <web-resource-collection>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
         <role-name>sr_administrator</role-name>
    </auth-constraint>
    </security-constraint>
    <!-- authentication -->
    <login-config>
         <auth-method>BASIC</auth-method>
    </login-config>
    </web-app>

  • Why MyEclipse can't auto deploy in OC4J?

    I can start up oc4j in MyEclipse.
    "08/11/07 02:35:12 Oracle Containers for J2EE 10g (10.1.3.4.0) initialized"
    When I apply in IE "http://localhost:23791/em/",
    IE display
    "? vInvalid protocol verification, illegal ORMI request or request performed with an incompatible version of this protocolvInvalid protocol verification,
    illegal ORMI request or request performed with an incompatible version of this protocol".
    My application(deploying thriugh MyEclipse) also like this.
    What happened?How solved it?

        I appreciate you reaching out to use Bradm0. I love autopay, and I can certainly appreciate your questions you have with this. I know that it does take 2 bill cycles for the autopay to take place. The reason being is it does take up to 30 days to be validated with your bank. I do apologize that you were transferred and placed on hold so many times. However, you can still make a payment manually through My Verizon, by dialing #PMT, mailing a check in, or stopping in at a store until the date that your first autopay will be set up. Once the autopay is fully verified you will no longer have to manually make the payment.
    ErinW_VZW
    Follow us on Twitter @VZWSupport

  • Deploy to OC4J standaone problem

    Dears,
    I developed an application in jdev 10.2 and it works successfully with embedded OC4J, but when deploy to OC4J standalone or Tomcat it doesn't work.
    I use JSON in my application.
    The log (for OC4J standalone and Tomcat) is empty from errors and exceptions, Only
    JSONRPCBridge.analyzeClass analyzing package1name.package2name.package3name.DAO.classNmaeDAO
    is written and my code didn't work and JSP is empty.
    Any ideas, what may be the problem there???

    When I deploy to oc4j from jdev... I get an error.
    Unknown site: http-web-site
    How do I figure out what my http site is via my oc4j configuration?
    I know in my Connection properties for oc4j in jdev, there is a target web site property where I entered "http-web-site", thinking this was the correct target.
    Thanks. Look in <oracle_home>\j2ee\home\config\server.xml
    Web sites are defined by the web-site entry. E.g
    <web-site path="./http-web-site.xml" />
    <web-site default="true" path="./default-web-site.xml" />
    Dhiraj

  • Can Jdeveloper TP4 deploy apps to OC4J standalone TP4

    I tried to have JDeveloper TP4 deply my ADF web app to the latest OC4J standalone version but I get the following error:
    Caused by: java.lang.InstantiationException: Import was not resolved for riscs.root:0.0.0: shared library "adf.oracle.domain" could not be found.
         at com.evermind.server.ApplicationStateRunning.initClassLoader(ApplicationStateRunning.java:1374)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:179)
         at com.evermind.server.Application.setConfig(Application.java:538)
    Before I spend alot of time debugging is this currently supported or can I only use the OC4J shipped with JDeveloper?
    Thanks.

    The sad part about this thread is that we seem to be talking about completely separate products, like they are from different companies. I have not been given the secret decoder ring to determine which parts of the suite really work together or when the magic convergence will occur. From a client/customer perspective these are part of an Oracle suite of applications, and I can assure you that clients have spent significant amounts of money and have an expectation (which was sold to them) that that all parts of the suite work together "seamlessly".
    I think everyone using TP releases understands and accepts a certain amount bugs and integration issues, however I have been working with 11G components for almost a year and I sometimes wonder if Oracle really understands the stress created on consultants when the "right-hand" does not seem to notice what the "left-hand" is doing.
    Our project requires JSF/ADFFaces, Rules, XML, WebServices, ORM(Toplink/EclipseLink?), JEE5 Container, SVN version control integration at a minumum. It has been a monumental effort to create even prototypes to show our client progress toward the vision that was sold. We are continually being told that all will be good when all the products become production. This is a very big risk where failure is paid for by consulting not product.

  • How to deploy an application in OC4J standalone?

    I'm trying to deploy Jspell 2004 in a standalone OC4J 10g. All my attempts have failed thus far, as I admit, I don't really know what I am doing.
    I've found several articles, including those from Jspell, and they all start with 'deploy the war file' but how?
    I don't know where I should deploy the WAR file or exaclty which config files I need to modify. I've tried under OH/j2ee/home/applications, OH/j2ee/DevSuite/application-deployments and always get the 'Error instantiating web-application' no application found on server.'
    I'm using the OC4J strictly for forms/reports running on port 8889 and that all works fine. When I start the OC4J, it is referencing the server.xml file in the DevSuite/config folder.
    Any ideas?

    Please look at the OC4J FAQ
    http://www.oracle.com/technology/tech/java/oc4j/904/collateral/oc4j-faq-904.html#oc4j_deploy
    Yes. If you wish to deploy only a Web module then you can utilize the default application OC4J is configured with. This is a two step task:
    First, tell the container about the WAR file to be deployed. Open the <J2EE_HOME>/config/application.xml file in an editor. Add a new <web-module> tag and specify the attributes for your WAR file.
    <web-module id="HRWebModule" path="<PATH-TO-WAR-FILE>"/>
    Secondly, tell the OC4J HTTP server about the new WAR file and provide a URL to access it. Open the <J2EE_HOME>/config/http-web-site.xml file in an editor. Add a new <web-app> tag and specify the attributes for your new Web module. It's important to note that the application attribute must specified as "default" since you have deployed your Web module to the default application. The name attribute should match the ID attribute you specified for the Web module.
    <web-app application="default" name="HRWebModule" root="/hrweb" />
    The WAR file will now be deployed by OC4J and accessible using a URL of /hrweb.
    -Debu
    http://debupanda.com

  • How Do You Deploy a War File to The OC4J Standalone ?

    I have a .war file that contains example code and I would like to deploy it to my OC4J Standalone.
    I tried putting the war file in the applications directory and adding a line in the server.xml file but I received the error:
    Error instantiating application at file:/C:/OC4JStandAlone/pdk101202_oc4j_extended/j2ee/home/applications/displaytag-examples-1.1.war: Unable to find/read assembly info for C:\OC4JStandAlone\pdk101202_oc4j_extended\j2ee\home\applications\displaytag-examples-1.1 (META-INF/application.xml)
    It appears it was expecting an .ear file instead of a .war file
    Is there an easy way to deploy a .war file to the OC4J Standalone?
    Thanks,

    Please refer to the OC4J FAQ on :-
    http://www.oracle.com/technology/tech/java/oc4j/1012/collateral/OC4J-FAQ-101202.pdf
    Q 24 should have your answer.
    Cheers!

  • 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.

  • How to lookup EJBs deployed in OC4J from a standalone client application

    Hello all,
    I am trying to lookup an EJB deployed in OC4J 10.1.3 from a standalone client application using the following code:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.PROVIDER_URL, "ormi://localhost:23791");
    env.put(Context.SECURITY_PRINCIPAL, "jazn.com/test");
    env.put(Context.SECURITY_CREDENTIALS, "test");
    Context context = new InitialContext(env);
    Object ref = context.lookup("ejb/Dispatch");
    I get the following error:
    javax.naming.NameNotFoundException: ejb/Dispatch not found
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
    For the lookup string I've also tried:
    "java:comp/env/ejb/Dispatch" and "Dispatch"
    For the Context.PROVIDER_URL property I've also tried:
    opmn:ormi://localhost:6003:instance
    The result is always the same.
    I appreciate if someone could help me with this?
    Thanks,
    Georgi

    Georgi,
    Your question has been discussed many times on this forum. Search the forum archives for "RMIInitialContextFactory".
    The PROVIDER_URL needs to include the name of the deployed application that your EJB is part of, for example:
    env.put(Context.PROVIDER_URL, "ormi://localhost:23791/MyApp");The lookup name has to be the value of the "ejb-name" element in your "ejb-jar.xml" descriptor file.
    Your SECURITY_PRINCIPAL value looks strange to me. Personally, I use "principals" (and not JAZN), so I modified the "application.xml" file (in the "j2ee/home/config" subdirectory) to use "principals". Look for the following comment in that file:
    &lt;!-- Comment out the jazn element to use principals.
          When both jazn and principals are present jazn is used  --&gt;Good Luck,
    Avi.
    Message was edited by:
    Avi Abrami

  • Seems fail on deploying mapviewer on oc4j standalone

    Hi,
    I downloaded MapViewer 10.1.3.3 kit from Oracle website and try to deploy mapviewer.ear with oc4j standalone (10.1.3.1.0).
    I deployed mapviewer.ear with the oc4j. But, I got HTTP 500 Internal Server Error when I go to the following address.
    http://machine_name:8888/mapviewer/omserver?getv=t
    If I sucessfully deploy it, it should display the version and build number. Obviously, http://machine_name:8888/mapviewer did not work.
    I thought that I deployed it according to User's Guide for Oracle MapViewer. From oc4jadmin screen, the mapviewer status is running.
    Would you kindly advise me what other things I need to do?

    The issue was port number.
    I used oc4j which comes with OBI EE. The oc4j port# is 9704.
    When I switched the port# to 9704, it displayed the build and version number.
    http://localhost:9704/mapviewer/omserver?getv=t
    Thanks

  • Forgot Windows OC4J  Standalone password, How can it be reset?

    Forgot Windows OC4J Standalone password, How can it be reset?
    TIA,
    Al Malin

    Actually, I think that's how you are supposed to do it. The default is usually welcome, but I'm pretty sure there's a jazn-data.xml file that contains the password encrypted. You can manually edit it there, then restart it and it should work.

  • JDev 9.0.3.1 deployment to OC4J 10g standalone possible

    Hello,
    we have problems using JDev 9.0.3.1 to deploy a simple test-servlet to OC4J 10g 9.0.4 (PDK-prebundled) standalone.
    So is the question is, wether this should be in principle possible?
    When yes, how must I configure the deployment descriptor resp. what modificatios must i apply to the "OC4J Deployment command line". I have noticed that the admin.jar files on PC and OC4J-server are NOT identical:
    -------from the Manifest from JDev9031-----------------
    Manifest-Version: 1.0
    Created-By: 1.3.1 (Sun Microsystems, Inc. )
    Main-Class: com.evermind.client.orion.Oc4jAdminConsole
    Class-Path: oc4j.jar
    Name: "Oracle Console-based Admin"
    Implementation-Title: "com.evermind.client"
    Implementation-Version: "9.0.4.0.0"
    Implementation-Vendor: "Oracle Corporation, Inc."
    -------form the Manifest from OC4J---------------------
    Manifest-Version: 1.0
    Created-By: 1.3.1 (Sun Microsystems, Inc. )
    Main-Class: com.evermind.client.orion.Oc4jAdminConsole
    Class-Path: oc4j.jar
    Name: "Oracle Console-based Admin"
    Implementation-Title: "com.evermind.client"
    Implementation-Version: "9.0.4.0.0"
    Implementation-Vendor: "Oracle Corporation, Inc."
    So I have tried several combinations with the admin.jar and oc4j.jar from the
    OC4J-server in the PC for use with the JDeveloper, but I got only error messages.
    This problem might also be an issue with the JDKs:
    The Jdeveloper is running on a Windows2000-PC; java version "1.3.1_02". The OC4J 10g is running on a Sun Sparc with Solaris 8, On this server /usr/local/jdk/j2sdk1.4.1_07/bin/java shows a version "1.4.1_07".
    Regards
    Michael

    Thany you Steve,
    I think you are right. I have had created a new directory under JDeveloper and copied admin.jar and oc4j.jar (because admin.jar consist only of an MF-File, that points to the class com.evermind.client.orion.Oc4jAdminConsole which is included in oc4j.jar) from OC4J 10g. The new connection points to this directory.
    But I am not able to include this oc4j.jar-version of OC4J in the classpath of the JDeveloper. This should be possible in the deployment descriptor. Under Platform/OC4J Standalone, there is a tab. "Deploying EAR" with the entry "OC4J Deployment command line"
    ${java} ${jvm.max.heap.size} -jar ${admin.jar}
    ${oc4j.url} ${username} ${password}
    -deploy -file ${ear.file}
    -deploymentName ${j2ee.app.name}
    Still I got the following error message from the log-window of JDev 9031
    ----------8<------------------8<-------------------
    Invoking OC4J admin tool...
    C:\Programme\Oracle\JDeveloper9031\jdk\jre\bin\javaw.exe -jar C:\Programme\Oracle\JDeveloper9031\Condor\admin.jar ormi://c3po.isae.condor-versicherungen.de:23791 admin **** -deploy -file C:\Programme\Oracle\JDeveloper9031\jdev\mywork\244_19_Aktion\TestDeploy\deploy\C3PO_OC4J_9_0_4-PDK3.ear -deploymentName 2ndC3PO_OC4J_9_0_4-PDK
    Error: javax.management.NotCompliantMBeanException
    java.lang.NoClassDefFoundError: javax.management.NotCompliantMBeanException
         com.evermind.server.ThreadState com.evermind.server.ThreadState.getCurrentState()
              ThreadState.java:206
         void com.evermind.server.rmi.RMIConnection.checkServletCaller()
              RMIConnection.java:3441
    ........and so on................................
    ----------8<------------------8<-------------------
    Has someone an idea. Otherwise, I must "upgrade" to JDev 9.0.4 as suggested by METALINK....
    Best Regards
    Michael

  • Jasperreports can't run when deploy on a standalone weblogic

    Hey Guys,
    I am developing an application using jdeveloper Studio Edition Version 11.1.2.1.0
    I have created a report using jasperreport when run on my integrated weblogic i can view my report but when deploy on a standalone weblogic the report can not be generated.
    Please see below the code used.
    import java.io.ByteArrayOutputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.InputStream;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.util.HashMap;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ActionEvent;
    import javax.faces.event.ValueChangeEvent;
    import javax.naming.NamingException;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.http.HttpServletResponse;
    import net.sf.jasperreports.engine.JRException;
    import net.sf.jasperreports.engine.JasperCompileManager;
    import net.sf.jasperreports.engine.JasperExportManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperReport;
    import net.sf.jasperreports.view.JasperViewer;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletOutputStream;
    import javax.sql.DataSource;
    import net.sf.jasperreports.engine.type.WhenNoDataTypeEnum;
    import net.sf.jasperreports.engine.util.JRLoader;
    public class ReportsClass {
        JasperReport jasperReport;
        JasperPrint jasperPrint;
        String _accessReport;
        public void setAccessReport(String _accessReport) {
            this._accessReport = _accessReport;
        public String getAccessReport() {
            return _accessReport;
        public Connection getDataSourceConnection(String dataSourceName)
             throws Exception
             Context ctx = new InitialContext();
             DataSource ds = (DataSource)ctx.lookup(dataSourceName);
             return ds.getConnection();
        private Connection getConnection() throws Exception
            return getDataSourceConnection("jdbc/STARTESTDS");// datasource name should be defined in weblogic
        public  ServletContext getContext()
            return (ServletContext)getFacesContext().getExternalContext().getContext();
        public  HttpServletResponse getResponse()
            return (HttpServletResponse)getFacesContext().getExternalContext().getResponse();
        public static FacesContext getFacesContext()
            return FacesContext.getCurrentInstance();
         public void DoReport(ActionEvent actionEvent)throws FileNotFoundException, JRException, NamingException, SQLException, IOException, ClassNotFoundException {
            String accessDl=_accessReport;
            Connection conn = null;
                if (accessDl.equals("List of Employees") ) {
                try {
                    HashMap Parameters;
                        Parameters = new HashMap();
                    HttpServletResponse response = getResponse();
                         ServletOutputStream out = response.getOutputStream();
                    ServletContext context = getContext();
                    InputStream fs = context.getResourceAsStream("/OpendoorReports/" +"Learnerreport.jasper");
                    JasperReport template = (JasperReport) JRLoader.loadObject(fs);
                    template.setWhenNoDataType(WhenNoDataTypeEnum.ALL_SECTIONS_NO_DETAIL);
                    conn = getConnection();
                    JasperPrint print = JasperFillManager.fillReport(template, Parameters, conn);
                  JasperViewer.viewReport(print, false);
                         FacesContext.getCurrentInstance().responseComplete();
                   } catch (Exception jex) {
                    jex.printStackTrace(); 
                    finally
                          close(conn);
                } else {
                     System.out.println("FESTICOL");
        public void close(Connection con)
            if (con != null)
              try
                con.close();
              catch (Exception e)
    the added jar files are
    1- iText-2.1.7.jar
    2- jasperreports-4.0.1.jar
    3- jasperreports-fonts-4.0.1.jar
    when run the report no errors are returned
    is there anything a miss on the standalone server?
    Regards,
    Steve

    Add the JARs listed earlier to the CLASSPATH environment variable in the bin/startWebLogic script of the WebLogic server domain,  for example  the C:\Oracle\Middleware\user_projects\domains\base_domain\bin\startWebLogic batch file.
    set CLASSPATH=%SAVE_CLASSPATH%;path\to\iText-2.1.7.jar;path\to\ jasperreports-4.0.1.jar;path\to\jasperreports-fonts-4.0.1.jar
    Restart WebLogic server.

  • PDK & OC4J Standalone Development Environment

    Hello Portal Gurus,
    I now seek the knowledge of setting up a development environment where I can register and test portlets. As of now I understand that you need to download and install the OC4J Standalone version. Once OC4J is installed follow the directions to add PDK support. I have registered my portlet provider and viewed the portlet provider's "congradulations page". Since then I have found out that you can test specific pages e.g. (Show, Edit, Help) by editing a properties page and setting the parameter testPageURI to the apporpriate page. The portlet runs fine until I try to set links to other pages in the deployed WAR (using UrlUtils), use PDK objects (PortletRenderRequest is null), and use PDK API's. Is there a way to test indivdual portlets (not providers) like they have in the portlet repository page in Oracle ias. Test the edit mode, show mode, and preview mode etc. I know I can change the testpageURI parameter but PDK functionality (objects, API's) just don't work.
    thanks!

    Hello Harsha,
    I could and have developed and tested my portlets against an Oracle AS Portal instance. Performance becomes a problem when I do remote development. It takes approximately 15 minutes to deploy a portlet via a broadband vpn connection vs. 1 minute when deploying my portlets via a LAN. (A 9 MB upload is slow). If I can develop and test my portlets on my local machine it would greatly reduce the time it takes to complete the development cycle.
    Thanks!

Maybe you are looking for

  • How can I use a report as a filter that accepts a prompt value in R18?

    In R17 the following setup worked properly. 1) have a main report that uses another report as a filter report. 2) In the filter report, add a criteria statement which is prompted. 3) pass an argument from a web link or embedded web applet on the repo

  • Search exponent or subscript in a document

    Hi ! Do you know how to find all exponent and subscript characters in a document ? I need to circle those caracteres by html tags (<e> or <inf>) in order to extract contents of documents in html. Maybe using Find > Text or Grep ? Thanks. Cyril

  • ChaRM - Transport copies

    Hi, We are implementing ChaRM and have the following situation. In our landscape we have two system CRM, ERP, but we have QAS only for ERP. Then form CRM we have CRdev --> CRprd and when I create normal correction in ChaRM the both kind of request (o

  • 2D Graphics tutorials

    Hey guys, i want to write a 2D FPS. Unfortunatly i dont know much about this sort of programming (i do java at universtiy, but its all swing). Does anyone know of any good tutorials in 2D graphics handling , animation etc? Thanks Dave

  • Polling

    Hello. Is it possible do a polling in the meanwhile the Labview is in a "while cicle" in which there is  a Elapsed Time Express VI. What I want to do is while I'm waiting for the responce of an instrument  at the same time do the polling of another o