Error deploying J2EE Application (EAR) to standalone OC4J

Hi
I'm invoking the admin_client.jar utility to deploy a webservice on a standalone OC4J, here is the command:
java -jar %OC4J_HOME%\j2EE\home\admin_client.jar deployer:oc4j:localhost:23791 oc4jadmin test -deploy -file C:\10GIDS\BIN\johnTestWS.ear -deploymentname johnsws -bindAllWebApps default-web-site -contextRoot johnsws
I get the following error:
Deploy error: Deploy error: Operation failed with error:Error compiling :C:\JDeveloper_10g\j2ee\home\applications\johnsws\johnTestWS-web: Syntax error in source or compilation failed in: C:\JDeveloper_10g\j2ee\home\application-deployments\johnsws\johnTestWS-web\oracle\generated\runtime\XmlreturnBase__SOAPSerializer.java java.lang.NoClassDefFoundError: com/sun/tools/javac/MainException in thread "main"
The java.lang.NoClassDefFoundError: com/sun/tools/javac/MainException in thread "main" error string (from my limited understanding) would mean there is a jar file missing from the CLASSPATH or something, yet, because the '-jar' option is selected when running the java command I don't have the option to include any classpath in the command string. What am I doing wrong?
I've been trying to assemble and deploy this web service for ages now and I think I'm very close to the end, can someone please show me that I'm doing something very simple wrong....?

smydo,
I see you answered yourself in the other forum where you posted the same question:
Problems deploying Web Service to standalone OC4J from Windows command line
Good Luck,
Avi.

Similar Messages

  • Error deploying JSF project to my standalone OC4J server

    javax.faces.el.EvaluationException: oracle.oc4j.loader.util.AnnotatedLinkageError: view/backing/BlahBean (Unsupported major.minor version 49.0)
         Invalid class: view.backing.BlahBean
         Loader: scannerex.web.scannerex:0.0.0
         Code-Source: /D:/Oracle10gDS/jdev10gW/j2ee/home/applications/scannerex/scannerex/WEB-INF/classes/
         Configuration: WEB-INF/classes/ in D:\Oracle10gDS\jdev10gW\j2ee\home\applications\scannerex\scannerex\WEB-INF\classes
         Dependent class: java.beans.Beans
         Loader: jre.bootstrap
         Code-Source: unknown
         Configuration: jre bootstrap
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206)...
    Basically the BlahBean is the backing bean for my JSF page. It seems as if it can't find it, or that it doesnt like the actual bean
    Any ideas on what may be the problem here?

    Unsupported major.minor version 49.0
    Compile JSF with JDK 1.4.

  • Error while deploying ADF application to a standalone weblogic server

    I am using Jdeveloper 11.1.1.6.0, and I am trying to deploy my application to a standalone server running on a Unix box and I get the following error message:
    [04:12:44 PM] ---- Deployment started. ----
    [04:12:44 PM] Target platform is (Weblogic 10.3).
    [04:13:00 PM] Retrieving existing application information
    [04:13:01 PM] Running dependency analysis...
    [04:13:01 PM] Building...
    [04:13:05 PM] Deploying profile...
    [04:13:09 PM] Wrote Web Application Module to C:\JDeveloper\PortingAppln\ViewController\deploy\ADF1.war
    [04:13:13 PM] Deploying Application...
    [04:20:19 PM] [Deployer:149191]Operation 'deploy' on application 'ADF1' is initializing on 'ADF1'
    [04:20:45 PM] Weblogic Server Exception: weblogic.application.WrappedDeploymentException: oracle/jrf/PortabilityLayerException
    [04:20:45 PM] See server logs or server console for more details.
    [04:20:45 PM] weblogic.application.WrappedDeploymentException: oracle/jrf/PortabilityLayerException
    [04:20:46 PM] #### Deployment incomplete. ####
    [04:20:46 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    Can someone help me with this problem.
    Thanks,
    Srini.

    Well, how did you do?
    I am having a similar problem.
    1) Installed WLS 10.3.5 on a Linux machine
    2) Installed ADF runtime libraries (ofm_appdev_generic_11.1.1.5.0_disk1_1of1.zip)
    3) I can see at deployments
    - adf.oracle.businesseditor(1.0,11.1.1.2.0)
    - adf.oracle.domain(1.0,11.1.1.2.0)
    - adf.oracle.domain.webapp(1.0,11.1.1.2.0)
    - DMS Application (11.1.1.1.0)
    - em
    - emai
    - emas
    - emcore
    - FMW Welcome Page Application (11.1.0.0.0)
    - jsf(1.2,1.2.9.0)
    I created from scratch a new Fusion Web app. It just has 1 ADF read-only table based on the HR.COUNTRIES table. It runs perfectly on the integrated WL.
    I cannot deploy it to my standalone WLS. The error:
    [02:01:37 PM] Unable to determine the target platform from the Profile. Using default
    [02:01:37 PM] ---- Deployment started. ----
    [02:01:37 PM] Target platform is (Weblogic 10.3).
    [02:01:37 PM] Retrieving existing application information
    [02:01:37 PM] Running dependency analysis...
    [02:01:37 PM] Building...
    [02:01:37 PM] Deploying 2 profiles...
    [02:01:37 PM] Wrote Web Application Module to C:\JDeveloper\mywork\TesteAPP\ViewController\deploy\TesteAPP_ViewController_webapp.war
    [02:01:37 PM] Wrote Enterprise Application Module to C:\JDeveloper\mywork\TesteAPP\deploy\TesteAPP_Project1_TesteAPP.ear
    [02:01:37 PM] Deploying Application...
    [02:01:39 PM] [Deployer:149191]Operation 'deploy' on application 'TesteAPP_Project1_TesteAPP' is initializing on 'ADFServer'
    [02:01:39 PM] [Deployer:149193]Operation 'deploy' on application 'TesteAPP_Project1_TesteAPP' has failed on 'ADFServer'
    [02:01:39 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application TesteAPP_Project1_TesteAPP on ADFServer.: Failed to load webapp: 'testeADF'.
    [02:01:39 PM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'testeADF'
    [02:01:39 PM] Caused by: weblogic.management.DeploymentException: Error: Unresolved Webapp Library references for "ServletContext@1021039597[app:TesteAPP_Project1_TesteAPP module:testeADF path:/testeADF spec-version:2.5]", defined in weblogic.xml [Extension-Name: jsf, Specification-Version: 2, exact-match: false]
    [02:01:39 PM] See server logs or server console for more details.
    [02:01:39 PM] weblogic.application.ModuleException: Failed to load webapp: 'testeADF'
    [02:01:39 PM] Deployment cancelled.
    [02:01:39 PM] ---- Deployment incomplete ----.
    [02:01:39 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    I am using JDeveloper 11.1.2.1.0
    What am I missing here? It must be something obvious, but I am stuck.
    Thanks in advance.

  • SaxParser error when deploying J2EE application on 10gAS for IBM AIX 5.2

    Hello,
    We have problems deploying J2EE application on 10gAS 9.0.4.0.0, on IBM AIX 5.2. We deployed it on 10gAS for Windows 9.4.0.0 and 9.0.4.0.1, and on 10gAS 9.0.4.0.0 for Linux, without any trouble (installed ADF runtime, etc.).
    Application architecture is JSP/Struts/ADF BC4J. We used JHeadstart 10g framework.
    As soon as we start the application, we get the message described bellow. We saw that J2SE version, shipped with the AS is 1.4.1? On all the other AS versions, and in embedded JDeveloper OC4J is 1.4.2.
    We also use the Xerces library xercesImpl.jar, which is located in .../WEB-INF/lib directory (which contains SaxParser implementation), if that is important. But the application fails right on the beginning.
    The complete error message follows:
    javax.xml.parsers.FactoryConfigurationError: Provider null could not be
    instantiated: java.lang.NullPointerException at
    javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:30) at
    org.apache.commons.digester.Digester.getFactory(Digester.java:512) at
    org.apache.commons.digester.Digester.getParser(Digester.java:686) at
    org.apache.commons.digester.Digester.getXMLReader(Digester.java:902) at
    org.apache.commons.digester.Digester.parse(Digester.java:1567) at
    org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1433) at
    org.apache.struts.action.ActionServlet.init(ActionServlet.java:466) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at
    oracle.jheadstart.controller.struts.JhsActionServlet.init(JhsActionServlet.java:219) at
    com.evermind[Oracle Application Server Containers for J2EE 10g
    (9.0.4.0.0)].server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (9.0.4.0.0)].server.http.HttpApplication.findServlet(HttpApplication.java:4523)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (9.0.4.0.0)].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2561)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:640)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
    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(Thread.java:568)
    Any information would be helpful,
    Vladimir,
    MAOP d.o.o., Slovenia

    Figures, I've been fighting with this for the past day and a half and I figure it out shortly after I post the question.
    It turns out the tiles.jar that was in our WEB-INF/lib directory was an old one. It looks like the newer struts.jar (from jdeveloper) we're using includes the tiles information. Once I removed tiles.jar, commons-dbcp, pool, resources, and services, it works now.
    It looks like jdeveloper overwrites most of those files with it's built in struts integration, and we've just been lucky before that struts.jar was being loaded before tiles.jar and something with oas 10.1.3 is loading the jars in a different order--but I'm just guessing here.

  • Updating a Deployed J2EE Application Component

    Hi All,
    I was going through this link below :
    http://e-docs.bea.com/wls/docs61/adminguide/utils.html#1139180
    Updating a Deployed J2EE Application
    To update a specific component, enter the following commands:
    % java weblogic.deploy -port 7001 -host localhost -component
    Basic_example:sampleserver,exampleserver update weblogicpwd Basic_example c:\updatesample\ejb\basic\BasicStatefulTraderBean.jar
    update will cause the application or component to be updated on all server instances
    to which is targeted.
    Does this require the application be deployed in a "Expanded Directory Format"
    and "Auto-deployment" turned 'on' ? - which is not good for Production, I guess.
    Regards,
    Nathan Pillai

    Hi Uday,
        Steps to be followed !!!
    1. Take a Copy of the .Ear to test.EAR
    2. Rename test.Ear to test.Zip
    3. Extract the Files present in the test.zip into a Folder 'test' (this folder has the .War file)
    4. Rename .war to .Zip
    5. Extract the Contents from .zip to a Folder(myRoot Folder should contain the JSP, WEB-INF, Filters, WebContent etc)
    6. Open NWDS --> create a Web Container Project(myContainerWar) in J2EE perspective
    7. Select myContainerWar --> right Click --> Choose IMPORT File --> Browse --> Select MYROOT folder created by us. FINISH
    WAR holds the total Structure of the Web Component based application.
    Meaning WAR structure will get created in the NWDS !!!!
    Once you are finished with the Changes, you have to create a EA project in NWDS and add the new WAR to it. Build the .EAR and deploy it !!!
    Thanks
    Suresh KB

  • Fastest way of re-deploying j2ee applications

    I am using Iplanet Application server to deploy j2ee applications. I want to know the fastest way to redeploy whole application after making some changes in JSPs, Servlets and EJBs?
    Do i have to pack the whole ear again and then re-deploy it again to see the changes or there is any alternative?

    If change is done in JSPs, u can test it copying in public_html folder in J2EE. And when JSPs are finalized make EAR file and redeploy it.But for EJBs u have to redeploy the EAR file again. Remember public_html folder contains files teporarily, if application is undeployed all the files are deleted.

  • Error in deploying J2EE application

    Hello
    I created EJB application and trying to deploy the same into my J2EE server (we are using J2EE engine of our XI WAS server).While deploying .ear file through NWDS its giving following error
    "Cannot determine sdm host (is empty). Please configure your engine/sdm correctly !"
    we have mapped J2EE engine correctly i.e. Message Server IP and port. Still its giving this problem.Is it something need to be configure on J2EE server side?
    Regards
    Ashish

    Hi Ashish,
    First Configure your J2EE Server correctly.
    example:
    In your work bench.
    Go To  windows - preference - SAP J2EE Engine
    Select your J2EE engine accordingly..if you installed in it local the select SAP J2EE engine is installed on local host.
    give instance name and system name.
    ex: System name - F31
    J2EE Instance - 30
    SCS Instance - 31
    close and open Webdynpro.
    Go to J2EE Engine Tab.
    Dispatcher ,SDM,Server0 Everything should be in Green colour.
    Otherwise give some time to server for starting process.
    Now It should work for you.
    Now try to deploy your Application.
    Regards,
    Karthick

  • Deploying j2ee sun .ear with OC4J

    Debu Panda wrote:
    Looks like deployment of an EJB is causing this problem. Can you please paste the deployment descriptor of the EJB causing this problem.
    What version of OC4J are you using ?
    regards
    Debu Panda
    Oracle
    Thank you Debu!
    I'm using OC4J version 1.0.2.2.1.
    I don't know wich EJB can cause the problem.
    This is the ejb-jar.xml contained in the jar file.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
    <display-name>EJBContainer</display-name>
    <enterprise-beans>
    <entity>
    <display-name>SPMSessionFactoryEJB</display-name>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <home>spm.infrastruttura.session.SPMSessionFactoryHome</home>
    <remote>spm.infrastruttura.session.SPMSessionFactory</remote>
    <ejb-class>spm.infrastruttura.session.SPMSessionFactoryEJB</ejb-class>
    <persistence-type>Bean</persistence-type>
    <prim-key-class>java.lang.Object</prim-key-class>
    <reentrant>False</reentrant>
    <ejb-ref>
    <ejb-ref-name>SPMSessionEJB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>SPMSessionHome</home>
    <remote></remote>
    </ejb-ref>
    <security-identity>
    <description></description>
    <use-caller-identity></use-caller-identity>
    </security-identity>
    <resource-ref>
    <res-ref-name>DBORA</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </entity>
    <session>
    <display-name>SPMSessionEJB</display-name>
    <ejb-name>SPMSessionEJB</ejb-name>
    <home>spm.infrastruttura.session.SPMSessionHome</home>
    <remote>spm.infrastruttura.session.SPMSession</remote>
    <ejb-class>spm.infrastruttura.session.SPMSessionEJB</ejb-class>
    <session-type>Stateful</session-type>
    <transaction-type>Bean</transaction-type>
    <security-identity>
    <description></description>
    <use-caller-identity></use-caller-identity>
    </security-identity>
    <resource-ref>
    <res-ref-name>DBORA</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <method-permission>
    <unchecked />
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getSessionList</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getHandle</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>remove</method-name>
    <method-params>
    <method-param>javax.ejb.Handle</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>getHomeHandle</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getSession</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>create</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>findByPrimaryKey</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>getEJBMetaData</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>isIdentical</method-name>
    <method-params>
    <method-param>javax.ejb.EJBObject</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getEJBHome</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>removeSession</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>remove</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getPrimaryKey</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getSession</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>remove</method-name>
    <method-params>
    <method-param>java.lang.Object</method-param>
    </method-params>
    </method>
    </method-permission>
    <method-permission>
    <unchecked />
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getLastAccessTime</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>refreshSession</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>SessionScaduta</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>maketree</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getLingua</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getEmailAddr</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getRs</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getLastName</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>Validate</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getPrimaryKey</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>setLastName</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>create</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getUserName</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>addEjb</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getEJBHome</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>removeEjb</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>close</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>setUserName</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getFirstName</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>remove</method-name>
    <method-params>
    <method-param>java.lang.Object</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>setProfilo</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getHandle</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>getHomeHandle</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>remove</method-name>
    <method-params>
    <method-param>javax.ejb.Handle</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getSubSystem</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>setEmailAddr</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getCodeCliente</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>isIdentical</method-name>
    <method-params>
    <method-param>javax.ejb.EJBObject</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>getEJBMetaData</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getEjb</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getId</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getPassword</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>setPassword</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getIpClient</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getSessionEspireTime</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>setFirstName</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>remove</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>setSubSystem</method-name>
    <method-params>
    <method-param>spm.infrastruttura.SubSystem</method-param>
    </method-params>
    </method>
    </method-permission>
    </assembly-descriptor>
    </ejb-jar>
    Stefano wrote:
    I'm trying to deploy under OC4Jan ear file packed with j2ee.
    I've the following problems:
    Command line:
    C:\OC4J\j2ee\home>java -jar admin.jar ormi://localhost/ admin spm -deploy -file
    ./applications/myApp/myApp.ear -deploymentName myApp
    Result:
    Auto-unpacking C:\OC4J\j2ee\home\applications\myApp.ear... done.
    Auto-unpacking C:\OC4J\j2ee\home\applications\myApp\war-ic.war... done.
    Auto-deploying myApp (New server version detected)...
    java.lang.InstantiationException: Illegal use-caller-identity value, legal value
    s are True and False.
    at com.evermind.server.deployment.SecurityIdentity.<init>(SecurityIdenti
    ty.java:52)
    at com.evermind.server.ejb.deployment.BeanDescriptor.parseAssemblyNode(B
    eanDescriptor.java:704)
    at com.evermind.server.ejb.deployment.EntityBeanDescriptor.<init>(Entity
    BeanDescriptor.java:107)
    at com.evermind.server.ejb.deployment.EJBPackage.parseEnterpriseBeans(EJ
    BPackage.java:475)
    at com.evermind.server.ejb.deployment.EJBPackage.parseMainNode(EJBPackag
    e.java:369)
    at com.evermind.xml.XMLConfig.parseRootNode(XMLConfig.java:256)
    at com.evermind.xml.XMLConfig.init(XMLConfig.java:142)
    at com.evermind.server.ServerComponent.init(ServerComponent.java:178)
    at com.evermind.server.ejb.EJBPackageDeployment.getPackage(EJBPackageDep
    loyment.java:534)
    at com.evermind.server.administration.ServerApplicationInstallation.fini
    sh(ServerApplicationInstallation.java:397)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:66)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    What can i do?
    Tahnks.

    Stefano,
    Can you please the following line in the ejb-jar.xml from
    <use-caller-identity></use-caller-identity>
    <use-caller-identity>true</use-caller-identity>
    and redeploy the application ?
    regards
    Debu

  • Error while deploying ADF application to a standalone weblogic

    jdeveloper version: 11.1.2.2
    Issue: I have built a standalone weblogic server (10.3.5.0) and am trying to deploy my ADF application to it. The deployment fails with the following message. The stand alone server I have built is on the same machine where jdeveloper is installed and I am using same weblogic that came with jdeveloper install. The aplication runs fine on integrated server. I have researched this issue and have got more or less same answer of installing ADF run time libraries. Can someone please help me with exactly what I need to install and how?
    Thanks,
    Saurabh.
    [09:49:44 AM] Unable to determine the target platform from the Profile. Using default
    [09:49:44 AM] ---- Deployment started. ----
    [09:49:44 AM] Target platform is (Weblogic 10.3).
    [09:49:55 AM] Retrieving existing application information
    [09:49:55 AM] Running dependency analysis...
    [09:49:55 AM] Building...
    [09:50:18 AM] Deploying profile...
    [09:50:20 AM] Wrote Web Application Module to C:\JDeveloper\mywork\EmployeeTrack\ViewController\deploy\EmployeeTrack_ViewController_webapp.war
    [09:50:20 AM] Deploying Application...
    [09:50:24 AM] [Deployer:149191]Operation 'deploy' on application 'EmployeeTrack_ViewController_webapp' is initializing on 'ADFServer'
    [09:50:26 AM] [Deployer:149193]Operation 'deploy' on application 'EmployeeTrack_ViewController_webapp' has failed on 'ADFServer'
    [09:50:26 AM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application EmployeeTrack_ViewController_webapp on ADFServer.: Failed to load webapp: 'EmployeeTrack_ViewController_webapp.war'.
    [09:50:26 AM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'EmployeeTrack_ViewController_webapp.war'
    [09:50:26 AM] Caused by: weblogic.management.DeploymentException: Error: Unresolved Webapp Library references for "ServletContext@29261813[app:EmployeeTrack_ViewController_webapp module:EmployeeTrack_ViewController_webapp.war path:/alonedemo spec-version:2.5]", defined in weblogic.xml [Extension-Name: adf.oracle.domain.webapp, exact-match: false], [Extension-Name: jstl, Specification-Version: 1.2, exact-match: false], [Extension-Name: jsf, Specification-Version: 2, exact-match: false]
    [09:50:26 AM] See server logs or server console for more details.
    [09:50:26 AM] weblogic.application.ModuleException: Failed to load webapp: 'EmployeeTrack_ViewController_webapp.war'
    [09:50:26 AM] Deployment cancelled.
    [09:50:26 AM] ---- Deployment incomplete ----.
    [09:50:26 AM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)

    Thanks Timo.. You were right.. Those setting helped me fix the initial issue.. Now I have another issue and was wondering if you have seen this as well?
    [11:35:13 AM] Unable to determine the target platform from the Profile. Using default
    [11:35:13 AM] ---- Deployment started. ----
    [11:35:13 AM] Target platform is (Weblogic 10.3).
    [11:35:13 AM] Retrieving existing application information
    [11:35:13 AM] Running dependency analysis...
    [11:35:13 AM] Building...
    [11:35:20 AM] Deploying profile...
    [11:35:21 AM] Wrote Web Application Module to C:\JDeveloper\mywork\EmployeeTrack\ViewController\deploy\EmployeeTrack_ViewController_webapp.war
    [11:35:21 AM] Deploying Application...
    [11:35:23 AM] [Deployer:149191]Operation 'deploy' on application 'EmployeeTrack_ViewController_webapp' is initializing on 'ADFServer'
    [11:35:25 AM] [Deployer:149193]Operation 'deploy' on application 'EmployeeTrack_ViewController_webapp' has failed on 'ADFServer'
    [11:35:25 AM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application EmployeeTrack_ViewController_webapp on ADFServer.: Failed to load webapp: 'EmployeeTrack_ViewController_webapp.war'.
    [11:35:25 AM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'EmployeeTrack_ViewController_webapp.war'
    [11:35:25 AM] Caused by: java.lang.ClassNotFoundException: oracle.adf.library.webapp.ResourceServlet
    [11:35:25 AM] See server logs or server console for more details.
    [11:35:25 AM] weblogic.application.ModuleException: Failed to load webapp: 'EmployeeTrack_ViewController_webapp.war'
    [11:35:25 AM] Deployment cancelled.
    [11:35:25 AM] ---- Deployment incomplete ----.
    [11:35:25 AM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)

  • No Data Source found error while deploying J2EE application

    hi
    i am new to Oracle9ias. I was going through the Oracle by Example tutorial available on the site. There i followed the steps to deploy a sample J2EE application. Acc to it i first created the datasource and then tried to deploy the application. But i am getting "datasource not found" error. I am totally unaware of the possible cause of this. The error in specific is as follows
    Deployment failed: Nested exception Root Cause: No DataSource found at jdbc/hrDS. No DataSource found at jdbc/hrDS
    Please help
    thanks
    nitin

    Document is outdated & for now could you please follow http://dev.day.com/content/kb/home/cq5/Development/HowToConfigureSlingDatasource.html

  • Could anyone tell me the command to deploy the J2EE application EAR in OAS

    Thanks for your help.
    You can point me to a document also.
    I just would like to manually deploy an EAR in Oracle Application Server. I am in Suse Linux. If you will be able to tell in windows environment also, that is fine, we can figure out from there.
    Thanks

    There are multiple ways to deploy and ear to Oracle Application Server:
    1> Use Application Server Control (AS) to deploy an application
    2> You can use JDeveloper. This may be the simplest for you. Load your application into JDev and configure the Application Server connection. Then you can deploy quickly after making edits
    3> Use an ANT task to deploy your application. There are a number of examples in the howto section of OC4J:
    http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/index.html

  • Error while running Create page in standalone-oc4j

    I have an ADF Create page (CreateAppt.jsp) that works fine through jdeveloper 10.1.3, but does not work when i deploy and run it on a standalone-oc4j. Appreciate your ideas on what may cause this or debugging tips..
    My ADF application flows through two pages:
    a List page (ListAppts.jsp has a Create button) -> a Create Page (CreateAppt.jsp)
    When I click on the Create button on the List page, I arrive at the Create Page.
    When I run through jdeveloper, I see that all input fields in the Create page are empty, which is what I expect. However, when I open the same page on standalone-oc4j, all the input fields are populated with the first row in the List Page, and there is an error:
    JBO-25009: Cannot create an object of type:oracle.jbo.domain.Number with value:oc4jadmin
    For input string: "o"
    I designed the Create page using the generic Data Control Palette, by dragging the VO and dropping it with this option: Create->Forms->ADF Creation Form
    When running through standalone-oc4j, why is the Create page populated? and how is the standalone-oc4j login string, "oc4jadmin", used in the create?
    Thanks,
    Ou-Dan

    Hi,
    this sounds strange and cannot be diagnosed from remote. If it works in JDeveloper with the embedded OC4J then is works the same in stand alone OC4J. Having "oc4jadmin" showing seems that you look up a value from the request and assign it to the application. Note that you don't need to be logged in to OC4J to see ADF faces apps running.
    The problem seems to be in your application. Can you reproduce this with a simple testcase?
    Frank

  • Oracle 10g - Creating a new Application Server using standalone OC4J 10g

    I have some issues in creating a new app. server using standalone oc4j 10g 10.1.3 instance. After I created the app. server instance, I tested the connection and it says connection refused. I used the userid as oc4jadmin and the password as welcome. I am getting a message connection refused. For connection, I used the default hostname "localhost" and I didn't mention anything in the URL path.

    Thanks Steve..
    Here is what I am trying to do.. I want to create a new app server instance (i.e.) stand alone oc4j server, where I can deploy my web service and run a test.
    Oracle JDeveloper 10g:
    Under Connection Navigator, Application Server --
    1) Right click to 'Create New Application Server Connection'
    2) Connection type as 'Standalone OC4J 10 g 10.1.3',
    3) Username ==> oc4jadmin, Password ==>welcome, checked the Deploy password.
    4) Hostname: localhost RMI Port: 23791
    URL path: <<blank>>
    5) Test Connection ==> getting a error message...
    Error while getting remote MBeanServer for url: ormi://localhost:23791/default:
    Error reading application-client descriptor: Error communicating with server: Connection refused: connect; nested exception is:
         javax.naming.CommunicationException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]
    Any input you can provide would be of great help.

  • Deployed J2EE application successfully. But cannot access the application

    I installed SAP Netweaver 2004s and tried to create a Web application and an ear file looking at the example given at
    http://help.sap.com/saphelp_nw04/helpdata/en/7f/5c93acbd1343d4be7d79dc298faa7b/frameset.htm
    I followed all the steps listed there. The deployment from the Developer Studio showed success. When I try to access the application using the url
    http://localhost:50000/Calculator/Calculator.jsp I get the following error. I am not sure why it is looking at com.sap.engine.docs.examples for the file.
    The requested resource /Calculator/Calculator.jsp is not available
      Details:   File [Calculator/Calculator.jsp] not found in application root of alias [/] of J2EE application [sap.com/com.sap.engine.docs.examples].
    Please let me know what I am possibly doing wrong here. Any help is very much appreciated.

    Hi Viji,
    If you are opening the web browser from your desktop , instead of <localhost>, you should use the name of the machine on which your J2EE engine is installed.
    Call the calculator application by entering its URL in the Web browser:
    http://<host>:50000/<contextRoot>/<Name_of_JSP.jsp>
    Where <host> is where j2ee is installed.
    Regards,
    Siddhesh

  • HELP!!! Cannot deploy J2EE application with Oracle JDBC driver...

    Hi,
    I am writing a J2EE application which (in theory, at least)
    connects to an Oracle 9i database.
    I have written a simple Java test app utilising only the
    java.sql package classes (e.g. Connection, ResultSet) to directly
    connect to the database. As long as the classes12.zip is in the
    CLASSPATH it works fine.
    Now I have written an Enterprise application (SessionBean,
    Remote and Home interface and Client) which I am attempting to
    deploy via deploytool.
    If I include just the client jar and EJB jar in the application
    it deploys okay but when I run the application (using runclient)
    it produces the following error:
    java.lang.NoClassDefFoundError: oracle/jdbc/OracleDriver
    (It is nested within other error output but that is the core
    issue).
    However if I try to include the JAR libraries into the app
    (classes12.jar and nls_charset.jar from $ORACLE_HOME/jdbc/lib),
    then I get the following output from deploytool when I hit the
    "deploy" (or "redeploy") button:
    Deployment error: invalid entry compressed size
    (expected 14411 but got 14580 bytes)
    Can someone please tell me what is going on???
    How can I deploy the J2EE application including the Oracle
    JDBC Driver???
    My only other option at the moment is to place all the function-
    -ality in the client and not use the J2EE framework.
    Any help is greatly appreciated.
    Regards,
    Ben New
    Leftclick Software Development
    [email protected]

    OK Ben,
    I admit I'm a bit confused. Let me see if I understand where you're
    coming from.
    You have written a J2EE application that includes a session bean,
    correct? If so, your session bean needs to be deployed to an EJB
    container. What container are you using? The Oracle 9i database
    has an embedded EJB container which (theoretically) you can use.
    However, as far as I know, Oracle recommends you use OC4J as the
    EJB container. So again I ask, what EJB container are you using?
    If, as you say, you are new to EJB, then I think you should
    immediately start working wiht OC4J as your EJB container.
    Did you look at the tutorial link I gave in my previous post? It
    explains -- step by step -- how to create, deploy and run a J2EE
    application using OC4J as the EJB container. It also has links to
    introductory material for people without little knowledge of J2EE
    and EJB.
    I have 9iAS Enterprise Edition and 8.1.7.1.0 database server (and
    OC4J) installed on my SUN machine. I cannot find any of the
    utilities you mention -- "j2eeadmin","runclient" or "deploytool".
    What Oracle software have you installed? What are the versions?
    What platform are you using?
    A J2EE application (according to the specification from SUN)
    consists of modules. A module can either be a client module or an
    EJB module. A client module can either be a java application client
    or a web-based client (servlet or JSP). A J2EE application usually
    contains one client module and one EJB module. A J2EE application
    needs to be deployed to a J2EE container.
    Hopefully the J2EE picture is becoming clearer. I think you need
    to read some introductory material regarding J2EE if you intend
    to become proficient at it.
    I feel that you are under the impression that a J2EE application
    is a glorified JDBC application. It isn't (as far as I'm aware).
    Good Luck,
    Avi.

Maybe you are looking for