Error in oc4j standalone & JAX-WS 2.0

Hi!!
I'm trying to generate a SOAP Message with this code:
MessageFactory factory =
MessageFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);
response = factory.createMessage();
SOAPPart parte =
response.getSOAPPart();
parte.setContent(xmlSource);
response.saveChanges();
in line "response.saveChanges();" i have this error:
16-feb-2007 11:00:21 com.sun.xml.messaging.saaj.soap.EnvelopeFactory
createEnvelope
GRAVE: SAAJ0511: Unable to create envelope from given source
16-feb-2007 11:00:21 com.sun.xml.messaging.saaj.soap.SOAPPartImpl
getContentAsStream
GRAVE: SAAJ0547: Error while trying to externalize
16-feb-2007 11:00:21 com.sun.xml.messaging.saaj.soap.MessageImpl
saveChanges
GRAVE: SAAJ0539: Unable to get header stream in saveChanges
16-feb-2007 11:00:21 com.sun.xml.messaging.saaj.soap.MessageImpl
saveChanges
GRAVE: SAAJ0540: Error during saving a multipart message
It's a web application and i'm debugging with OC4J Standalone from
Jdeveloper. The Libraries are the libs of JAX-WS 2.0 and the orion-
web.xml file has:
<web-app-class-loader search-local-classes-first="true"
include-war-manifest-class-path="true"/>
the exception stack:
07/02/16 11:00:59 java.lang.Exception: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Error during saving a multipart message
07/02/16 11:00:59 at genws.MotorXML.getSOAPMessageFromSource(MotorXML.java:443)
07/02/16 11:00:59 at genws.MotorXML.executeWS(MotorXML.java:232)
07/02/16 11:00:59 at PDFController.process(PDFController.java:321)
07/02/16 11:00:59 at es.jcyl.pdf.PDFServletEngine.service(PDFServletEngine.java:114)
07/02/16 11:00:59 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
07/02/16 11:00:59 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
07/02/16 11:00:59 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
07/02/16 11:00:59 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
07/02/16 11:00:59 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
07/02/16 11:00:59 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
07/02/16 11:00:59 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
07/02/16 11:00:59 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
07/02/16 11:00:59 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
07/02/16 11:00:59 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
07/02/16 11:00:59 at java.lang.Thread.run(Thread.java:595)
07/02/16 11:00:59 Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Error during saving a multipart message
07/02/16 11:00:59 at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1126)
07/02/16 11:00:59 at es.jcyl.genws.MotorXML.getSOAPMessageFromSource(MotorXML.java:437)
07/02/16 11:00:59 ... 14 more
07/02/16 11:00:59 Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to get header stream in saveChanges:
07/02/16 11:00:59 at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1096)
07/02/16 11:00:59 ... 15 more
07/02/16 11:00:59 Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: SOAP exception while trying to externalize:
Anybody can help me?
Thanks

The error was in the execution of OC4J embebbed. OC4J uses its own libraries for web services and xml.
You can deploy an application with JAX-WS 2.0 if you add this java option:
-Xbootclasspath/p:<dir_libs>\xml-apis.jar;<dir_libs>\xercesImpl.jar;<dir_libs>\xalan.jar;<dir_libs>\saaj.api.jar
And the jars of JAX-WS are added as libraries to the application.
With this solution you solve the problem: OC4J uses this libraries, not their owns, include the xml libraries.

Similar Messages

  • Error starting oc4j standalone

    Hi ,
    when i issue the command java -jar oc4j.jar i am getting this error
    D:\OracleAS\j2ee\home>java -jar oc4j.jar
    09/07/26 20:16:38 Unable to register the NameService:
    09/07/26 20:16:38 Error starting up the IIOPService ..
    09/07/26 20:16:38 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
    initialized
    Please help.

    Hi Gaurav,
    1. What is the JDK version you are using to start your standalone 10.1.3 OC4J?
    2. Have you configured any datasources or Resource archive files on the 10.1.3 OC4J?
    3. What is the version of the OC4J that jDev is using?
    4. What is the version of JDev?
    Looks like there is an incompatibility somewhere the above information will help. Thanks.
    Deepak

  • Pkd portals registering producer in OC4J standalone envirnment  Error

    when I'm trying to register producer for pdk portal in OC4J standalone envirnment its throwing the follwoing
    ERROR :
    I have done all the setup as per insteruction mentioned in installation guide of Oracle PKD.
    as such following :
    Within your OC4J home directory, create the following directories if they don't exist, or make
    backup copies if they do exist:
    $OC4J_HOME/jlib
    $OC4J_HOME/portal/jlib
    $OC4J_HOME/webcache/jlib
    Notes:
    $OC4J_HOME is the root directory of your OC4J installation. You will find directories named
    "bin", "j2ee", "javacache", "jdbc" etc. under this directory.
    Copy all the latest PDK-Java jar files to your OracleAS home. The jar files are included in
    $unzip_directory/pdk/libcommon/.
    copy $unzip_directory/pdk/libcommon/portal/jlib/* to $OC4J_HOME/portal/jlib/
    copy $unzip_directory/pdk/libcommon/webcache/jlib/* to $OC4J_HOME/webcache/jlib/
    copy $unzip_directory/pdk/libcommon/jlib/* to $OC4J_HOME/jlib/
    Notes:
    $unzip_directory denotes the directory where you have unzipped the pdk.zip.
    Add the following dependent library references to the global application.xml file. This file is
    found at the following location:
    $OC4J_HOME/j2ee/home/config/application.xml
    Dependent library references:
    <library path="../../../portal/jlib/pdkjava.jar"/>
    <library path="../../../portal/jlib/portaltools.jar"/>
    <library path="../../../portal/jlib/ptlshare.jar"/>
    <library path="../../../portal/jlib/tidy.jar"/>
    <library path="../../../jlib/ldapjclnt9.jar"/>
    <library path="../../../jlib/regexp.jar"/>
    <library path="../../../jlib/share.jar"/>
    <library path="../../../jlib/uix2.jar"/>
    <library path="../../../jlib/ojmisc.jar"/>
    <library path="../../../webcache/jlib/jawc.jar"/>
    <library path="../../home/jazn.jar"/>
    with above setup I'm able to deploy pkdApp.war onto the OC4j Standalone server :
    when trying to register producer I'm
    getting the following error:
    500 Internal Server Error
    java.lang.NullPointerException at
    oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showTestPage(Unknown Source) at
    oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source) at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at
    java.lang.reflect.Method.invoke(Method.java:585) at
    oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source) at
    oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source) at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at
    com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at
    com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:3
    70) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at
    com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221) at
    com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122) at
    com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111) at
    oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at
    com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.
    java:303) at java.lang.Thread.run(Thread.java:595)

    when I'm trying to register producer for pdk portal in OC4J standalone envirnment its throwing the follwoing
    ERROR :
    I have done all the setup as per insteruction mentioned in installation guide of Oracle PKD.
    as such following :
    Within your OC4J home directory, create the following directories if they don't exist, or make
    backup copies if they do exist:
    $OC4J_HOME/jlib
    $OC4J_HOME/portal/jlib
    $OC4J_HOME/webcache/jlib
    Notes:
    $OC4J_HOME is the root directory of your OC4J installation. You will find directories named
    "bin", "j2ee", "javacache", "jdbc" etc. under this directory.
    Copy all the latest PDK-Java jar files to your OracleAS home. The jar files are included in
    $unzip_directory/pdk/libcommon/.
    copy $unzip_directory/pdk/libcommon/portal/jlib/* to $OC4J_HOME/portal/jlib/
    copy $unzip_directory/pdk/libcommon/webcache/jlib/* to $OC4J_HOME/webcache/jlib/
    copy $unzip_directory/pdk/libcommon/jlib/* to $OC4J_HOME/jlib/
    Notes:
    $unzip_directory denotes the directory where you have unzipped the pdk.zip.
    Add the following dependent library references to the global application.xml file. This file is
    found at the following location:
    $OC4J_HOME/j2ee/home/config/application.xml
    Dependent library references:
    <library path="../../../portal/jlib/pdkjava.jar"/>
    <library path="../../../portal/jlib/portaltools.jar"/>
    <library path="../../../portal/jlib/ptlshare.jar"/>
    <library path="../../../portal/jlib/tidy.jar"/>
    <library path="../../../jlib/ldapjclnt9.jar"/>
    <library path="../../../jlib/regexp.jar"/>
    <library path="../../../jlib/share.jar"/>
    <library path="../../../jlib/uix2.jar"/>
    <library path="../../../jlib/ojmisc.jar"/>
    <library path="../../../webcache/jlib/jawc.jar"/>
    <library path="../../home/jazn.jar"/>
    with above setup I'm able to deploy pkdApp.war onto the OC4j Standalone server :
    when trying to register producer I'm
    getting the following error:
    500 Internal Server Error
    java.lang.NullPointerException at
    oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showTestPage(Unknown Source) at
    oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source) at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at
    java.lang.reflect.Method.invoke(Method.java:585) at
    oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source) at
    oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source) at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at
    com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at
    com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:3
    70) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at
    com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221) at
    com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122) at
    com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111) at
    oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at
    com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.
    java:303) at java.lang.Thread.run(Thread.java:595)

  • Error creating table on MS SQL Server with OC4J standalone

    Hi there,
    I'm trying to deploy an EJB application to OC4J standalone using a MS SQL Server 2000 database, MS SQL Server JDBC Drivers and OC4J 9.0.3 standalone but i keep getting this error:
    Auto-creating table: create table Functieprofiel_competentieNiveau_CompetentieNiveau_functieprofiel_LBOS_Ear_LBOS_Ejb (Functieprofiel_FUNCTIE_ID bigint identity not null, COMP_ID bigint identity null, NIVEAU_ID sql_variant(255) null)
    Error creating table: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Could not create IDENTITY attribute on nullable column 'COMP_ID', table 'Functieprofiel_competentieNiveau_CompetentieNiveau_functieprofiel_LBOS_Ear_LBOS_Ejb'.
    Deployment succeeds after this but the application does not run properly. Can anyone help me with this? I have no idea what to do.
    Rob Heikoop

    Rb -
    if you want to stop the auto-creation of tables, try going to the j2ee/home/config directory of your OC4J installation. Open the application.xml file and modify the attribute autocreate-tables to be set to false.
    That should stop the default table creation as a global property, unless you specifically override it at the specific deployed application level.
    You can then manually create the tables on the sql-server database instance. If you keep the column names the same as the field names in the bean, then you shouldn't need to do any manual mapping. To be sure of the column names to use, take a look in the orion-ejb-jar.xml which gets generated in the j2ee/home/application-deployments/<app-name>/<ejb-module-name> to see what table/column names the generator defaulted to
    -steve-
    -steve-

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

  • Oc4j standalone 10.1.3.3 and service registry with ssl install help needed

    Hello,
    I'm trying to install service registry with oc4j standalone for testing and demoing but am having some difficulty with the ssl side of things.
    I have setup a oc4j standalone 10.1.3.3 and configured the following ports:
    default http port: 9991
    ormi port: 9992
    ormi ssl port: 9993
    https port: 9994
    I have configured oc4j standalone for SSl as per instructions by copying default-web-site.xml to secure-web-site.xml and added secure="true" to <web-site> tag and added <ssl-config keystore..../> as well. I've also modified server .xml and added <web-site path="./secure-web-site.xml" /> into the file.
    I have then installed service registry as a publication (discovery) with http port pointing to 9991 and ssl enabled pointing to 9994 with oracle database.
    I can load http://localhost:9991/ and also https://localhost:9994 and both secure and non-secure page loads fine for the oc4j webpage. I can load http://localhost:9991/registry/uddi/web/ page but when I click on any of the link on it tries to load https://localhost:9994/registry/uddi/web i get a http 404 not found error.
    Tried googling and searching the forum for info, but I'm in need of a little help on where I went wrong.
    Thanks

    Hy frank, thanks for your reply:
    We use a jdk shipped with jdeveloper for running OC4J;
    "<JDev install dir>\jdk\bin\java.exe"
    java -version says:
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
    Regards.
    Davide

  • OC4J Standalone Remote Lookup

    Hello everyone,
    I am getting the following error when I am trying to do a remote lookup to an ejb which has been deployed successfully on OC4J Standalone. My client who is attempting the look up has been successfully deployed in OC4J instance embedded in Oracle9ias.
    The error tree is:
    [ApplicationServerThread] DEBUG game.GameManager 2003-04-15 13:35:57,984 - Game Driver URL = 199.5.201.102:23791/loto User= admin Pass:admin
    [ApplicationServerThread] DEBUG game.GameManager 2003-04-15 13:35:57,984 - Get Initial Context
    [ApplicationServerThread] DEBUG game.GameManager 2003-04-15 13:35:57,984 - Context Lookup ID=loto
    [ApplicationServerThread] DEBUG game.GameManager 2003-04-15 13:35:58,031 - Context Lookup found :loto Class Name = __Proxy0
    [ApplicationServerThread] ERROR game.GameManager 2003-04-15 13:35:58,031 - Game (loto)Driver Loading Error
    java.lang.NullPointerException
         at com.mot.vla.game.GameManager.getGameDriverFromURL(GameManager.java:253)
         at com.mot.vla.game.GameManager.getGameDriver(GameManager.java:231)
         at com.mot.vla.game.GameManager.getGameDesc(GameManager.java:77)
         at com.mot.vla.kernel.VlaPlayerKernel.getGameDescription(VlaPlayerKernel.java:147)
         at VlaPlayerKernelRemote_StatefulSessionBeanWrapper24.getGameDescription(VlaPlayerKernelRemote_StatefulSessionBeanWrapper24.java:1039)
         at com.mot.vla.ui.core.CoreServices.getGameDescription(CoreServices.java:677)
         at com.mot.vla.ui.core.CoreEngine.actionDispatcher(CoreEngine.java:163)
         at com.mot.vla.ui.core.CoreEngine.renderDocument(CoreEngine.java:122)
         at com.mot.vla.ui.core.CoreEngine.processRequest(CoreEngine.java:106)
         at com.mot.vla.ui.servlet.RequestHandler.doPost(RequestHandler.java:204)
         at com.mot.vla.ui.servlet.RequestHandler.doGet(RequestHandler.java:179)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:244)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    From what I can tell, it looks like my lookup was successful but the class name is __Proxy0, which is weird.
    Here are a sample of my code:
    the parameters are: url = 199.5.201.102:23791/loto User= admin password:admin id:loto
    public GameDriverRemote getGameDriverFromURL(String id, String url,
    String user, String password) {
    try {
    Context context = getInitialContext(url, user, password);
    logger.debug("Context Lookup ID="+id);
    Object obj = context.lookup(id);
    if (obj!=null) {
    logger.debug("Context Lookup found :"+id+" Class Name = "+obj.getClass().getName());
    GameDriverHome gameDriverHome = (com.mot.vla.game.GameDriverHome) PortableRemoteObject.narrow(obj, com.mot.vla.game.GameDriverHome.class);
    String tt= gameDriverHome.getClass().getName();
    logger.debug("Done looking up home =>"+tt);
    if (gameDriverHome != null) {
    System.out.println("Game (" + id + ") Driver Home Interface Found");
    logger.debug("Game (" + id + ") Driver Home Interface Found");
    GameDriverRemote gameDriverRemote = (com.mot.vla.game.GameDriverRemote) PortableRemoteObject.narrow(gameDriverHome.create(), com.mot.vla.game.GameDriverRemote.class);
    return gameDriverRemote;
    catch (Exception e) {
    logger.error("Game (" + id + ")Driver Loading Error", e);
    return null;
    static public Context getInitialContext(String url, String user,
    String password) throws Exception {
    Hashtable env = new Hashtable();
    // set the environment properties
    System.out.println("Get Initial Context");
    logger.debug("Get Initial Context");
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.PROVIDER_URL, "ormi://"+url);
    env.put(Context.SECURITY_PRINCIPAL, user);
    env.put(Context.SECURITY_CREDENTIALS, password);
    env.put("dedicated.connection","true");
    try {
    // create an initial context using the above environment properties
    return (new InitialContext(env));
    catch (Exception e) {
    System.out.println("Context initializtion error");
    e.printStackTrace();
    logger.error("Context initializtion error", e);
    return null;
    any help will be appreciated

    Hi Frances,
    Here is our ejb-jar.xml;
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!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>
    <enterprise-beans>
    <session>
    <description>Session Bean ( Stateless )</description>
    <display-name>MySession</display-name>
    <ejb-name>MySession</ejb-name>
    <local-home>com.some.company.ejb.MySessionLocalHome</local-home>
    <local>com.some.company.ejb.MySessionLocal</local>
    <ejb-class>com.some.company.ejb.MySessionBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>MySession</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    And here is the orion-ejb-jar.xml;
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE orion-ejb-jar PUBLIC
    "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN"
    "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
    <orion-ejb-jar>
    <enterprise-beans>
    <session-deployment name="MySession" location="ejb/MySession"/>
    </enterprise-beans>
    </orion-ejb-jar>

  • 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

  • Start issue oc4j standalone

    os windows server 2008
    oc4j version 10.1.3.4
    i try to start oc4j standalone with this command java -jar oc4j.jar
    in the commandline i get the following
    10/08/17 12:55:07 Oracle Containers for J2EE 10g (10.1.3.4.0) initialized
    but nothing more happens...seems to hang
    I do not know if there should happen more
    http://localhost:8888/em is not working...page not found
    can someone give me an advice

    when i try to start oc4j standalone with oc4j - start i get the following error
    D:\ORACLE\product\11.2.0\dbhome_1\oc4j\bin>oc4j -start
    Starting OC4J from D:\ORACLE\product\11.2.0\dbhome_1\oc4j\j2ee\home ...
    --2010-08-17 16:03:13.434 ERROR J2EE RMI-00002 Fehler beim Starten von ORMI-Server--
    myserver Port 23.791: Unrecognized Windows Sockets error: 0: JVM_Bind
    --2010-08-17 16:03:13.450 ERROR java.net.SocketException: Unrecognized Windows Soc--
    kets error: 0: JVM_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
    at java.net.ServerSocket.bind(ServerSocket.java:319)
    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at com.evermind.server.rmi.RMIServer.createServerSocket(RMIServer.java:459)
    at com.evermind.server.rmi.RMIServer.createNonSecureSocket(RMIServer.java:373)
    at com.evermind.server.rmi.RMIServer.setConfig(RMIServer.java:236)
    at com.evermind.server.ApplicationServer.initializeRMI(ApplicationServer.java:2416)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1004)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
    at java.lang.Thread.run(Thread.java:595)
    --10/08/17 16:03:13 Fehler beim Starten von ORMI-Server myserver Port 23.791:--
    Unrecognized Windows Sockets error: 0: JVM_Bind
    --10/08/17 16:03:13 Shutting down OC4J...--
    why port 23791 and not 8888?
    Edited by: JackfromDresden on Aug 17, 2010 4:16 PM

  • OC4J Standalone with sso in a different server

    Hi
    I'm trying to implement sso in a application of mine. the scenario is: application deployed in a OC4J standalone version 10.1.3 ( oc4j_extended_101300 ), I have a AS server ( Enterprise Manager ) 10.1.2.0.2 where resides the OID. I want to force the single sign-on in the AS server and then continue with my app in the standalone OC4J.
    How can I achieve this? I've seen some documentation on that, but I was unable to make it work.
    Thanks in advanced
    Vitor

    I'm employing the dead-end OC4J configuration to build JSR-168 portlets for use in Aqualogic UI/ WCI version 6.5 Portal. I was having some success getting the WSRP Producer component of a JSF Page to display/consume JSR 168 portlets in the ALUI portal before the server error.
    The JDev 11g download with imbedded weblogic 10gR3 server doesn't include the webcenter/portlet extentions and I've had issues getting ADF Fusion Web applications to run within the ALUI 6.5 portal page via WSRP.
    Without the ability to either
    1. Uninstall OC4J Standalone where the configurations get backed out and I can start from scratch...
    or
    2. fix the OC4J configuration to resolve the error....
    I guess I'll attempt to deploy Tech Preview 4 Jdeveloper built JSR-168 portlet WARs to WebLogic standalone instead with a new deployment descriptor and see if ALUI portal WSRP will work without the Oracle Containers 4 J2EE.
    Thoughts?

  • OC4J standalone password failed

    hello
    i have application server 10.1.2.2.0 and OC4J standalone 10.1.3.1 installed on Redhat Linux OS .
    All Services in Infra , Middle and the OC4J standalone are UP .
    i try to login to the enterprise manager of the OC4J stand alone using oc4jadmin user , but have the error message ( Your username and/or password are invalid.).
    i try to reset OC4J administrator password using the OC4J Documentation from Oracle section H.3.1 Resetting the Administrator (oc4jadmin) Password
    or like the metalink ID 576587.1 , and i try to change the password from ldap too ,
    but without a result , i still cannot login to the OC4J Application Server Control Console .
    Any help please?

    I m using OC4J version 9.0.4.0.0 ,what is the ---user name--- for it
    I had used ias_home & oc4jadmin
    but it showing the error that javax.naming.AthunticationException;
    & invalid username for default oc4jadmin,connect failed;
    How to set the path to JSTL:
    i.e. for sqltaglib.tld
    How to deploy JSTL app's manually

  • Enterprise manager configuration error: error instantiating OC4J Files

    Good day to all.
    Its my first time to install Oracle 11g on my Windows 7 computer.
    After i installed and configured the database, i get this following error , so i can't go through the Enterprise Manager.
    Enterprise Manager Configuration failed due to the following error - Error instantiating OC4J Configuration files
    So i checked the emConfig.log for error details, and i found out that i have some several files missing, in which i checked the folder also.
    I don't know why these files are missing.
    Jun 5, 2012 4:32:53 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
    CONFIG: Could not find or correctly parse file C:\app\ROMMEL\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\jms.xml in searching for tag jms-server with attribute port
    java.io.FileNotFoundException: C:\app\ROMMEL\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\jms.xml (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at java.io.FileReader.<init>(FileReader.java:41)
         at oracle.sysman.emcp.util.PortManager.findUsedPortsFromXML(PortManager.java:296)
         at oracle.sysman.emcp.util.PortManager.markAllUsedPorts(PortManager.java:1297)
    Jun 5, 2012 4:32:53 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
    CONFIG: Could not find or correctly parse file C:\app\ROMMEL\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\rmi.xml in searching for tag rmi-server with attribute port
    java.io.FileNotFoundException: C:\app\ROMMEL\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\rmi.xml (The system cannot find the file specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
    Jun 5, 2012 4:32:53 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
    CONFIG: Could not find or correctly parse file C:\app\ROMMEL\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\http-web-site.xml in searching for tag web-site with attribute port
    java.io.FileNotFoundException: C:\app\ROMMEL\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\http-web-site.xml (The system cannot find the file specified)
         at java.io.FileInputStream.open(Native Method)
    Jun 5, 2012 4:33:57 PM oracle.sysman.emcp.util.FileUtil setAttributeInXML
    CONFIG: Stack Trace:
    java.io.FileNotFoundException: C:\app\ROMMEL\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\server.xml (The system cannot find the file specified)
         at java.io.FileInputStream.open(Native Method)
    Jun 5, 2012 4:33:57 PM oracle.sysman.emcp.EMDBCConfig instantiateOC4JConfigFiles
    CONFIG: Failed to set value in server.xml for application-server tag
    Jun 5, 2012 4:33:57 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error instantiating OC4J configuration files
    Refer to the log file at C:\app\ROMMEL\cfgtoollogs\dbca\RommelDB\emConfig.log for more details.
    Jun 5, 2012 4:33:57 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error instantiating OC4J configuration files
         at oracle.sysman.emcp.EMDBCConfig.performConfiguration(EMDBCConfig.java:427)
         at oracle.sysman.emcp.EMDBCConfig.invoke(EMDBCConfig.java:174)
    IT seems that the folder OC4J_DBConsole\config\ does not contain any xml files.!
    Prior to this, i get some files that are not found error when running the SETUP, there are several of them, i just pressed CONTINUE in
    order to finish the installation.
    Hope anyone can give me a good advice and help so that i can start to run Enterprise Manager and to learn how to get around with database creation and configuration
    Im a total newbie in Oracle, so any help would be greatly appreciated.
    Thank you very much.

    Hello.
    I have successfully installed Microsoft Loopback adapter.
    I checked out the installation logs in the Logs directory, i can the error log (oraInstall2012-06-05_12-36-49PM.err) . which contains many errors:
    java.io.FileNotFoundException: C:\Users\ROMMEL\AppData\Local\Temp\Temp1_win64_11gR2_database_1of2.zip\database\stage\Components\oracle.ctx\11.2.0.1.0\1\DataFiles\filegroup12.jar (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
    java.io.FileNotFoundException: C:\Users\ROMMEL\AppData\Local\Temp\Temp1_win64_11gR2_database_1of2.zip\database\stage\Components\oracle.ctx\11.2.0.1.0\1\DataFiles\filegroup12.jar (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
    java.io.FileNotFoundException: C:\Users\ROMMEL\AppData\Local\Temp\Temp1_win64_11gR2_database_1of2.zip\database\stage\Components\oracle.ctx\11.2.0.1.0\1\DataFiles\filegroup5.jar (The system cannot find the path specified)
    java.io.FileNotFoundException: C:\Users\ROMMEL\AppData\Local\Temp\Temp1_win64_11gR2_database_1of2.zip\database\stage\Components\oracle.ctx\11.2.0.1.0\1\DataFiles\filegroup5.jar (The system cannot find the path specified)
    java.io.FileNotFoundException: C:\Users\ROMMEL\AppData\Local\Temp\Temp1_win64_11gR2_database_1of2.zip\database\stage\Components\oracle.ctx\11.2.0.1.0\1\DataFiles\filegroup19.jar (The system cannot find the path specified)
    AND lots of .jar and .rsf files missing.
    What should i do next?
    Thank you.

  • OC4J Standalone Distribution - License needed?

    Hi,
    I'm using APEX 3.2 on a 10gR2 Database with an Oracle HTTP Server (Apache 1.3). In order to enable PDF generation within APEX, an OC4J standalone is needed according to PDF Printing in APEX:
    [http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html#05]
    Can someone confirm that OC4J standalone does not need to be licensed separately? According to every Apex documentation the "Apache FOP with the OC4J standalone" is the way to go if you don't want to spend extra money on Oracle Licenses. And I definitely do not need the whole Oracle Application Server.
    What really disturbed me was the first sentence on the OC4J Standalone Distribution Web Page:
    [http://www.oracle.com/technology/software/products/ias/htdocs/utilsoft.html]
    All software on this page is to be used according to the development license unless you are a licensed Oracle Application Server customer. Oracle Application Server customers can use this software according to the terms and conditions of your Oracle Application Server license.
    I'm not a licensed Oracle Application Server customer but I wan't to use the OC4J standalone in a production enviroment! Do I need to license OC4J standalone?
    Regards,
    Marco

    hi %,
    The official oracle reply:
    Please find below additional information to OC4J licensing:
    OC4J Standalone version can be downloaded for free from OTN but its usage is subject to the OTN Agreement.The OTN agreement is very restrictive and it is important that the partner and end user know of these restrictions.
    There is a link to the OTN Agreement on the url provided:
    +[http://www.oracle.com/technology/software/products/ias/htdocs/utilsoft.html |http://www.oracle.com/technology/software/products/ias/htdocs/utilsoft.html ]+
    For example,  the OTN program cannot be used for internal data processing or for any commercial or production purposes, or for any purpose except the development of a single prototype of your application.
    For for any commercial or production purposes OC4J is part of Internet Application Server (Standard Standard One and Enterprise Editions) and WebLogic Suite. These programs would need to be licensed in order to use OC4J.
    Unfortunately, I do not have an Oracle supported way to genereate PDF within APEX which does not cause any additional license costs.
    cheers,
    Marco

  • Reports on OC4j Standalone

    Hello
    Do somebody know how can i integrate the reports rwservlet funcionality, a servlet that you can invoke passing report parameters, on oracle OC4J standalone installation?
    what about OAS?
    Thanks.

    Hello,
    You can use a Sysinternals free tool (filemon, procmon , ...) to check which DLL oraclient10.dll is used ..
    http://www.sysinternals.com
    Regards

Maybe you are looking for

  • What changed in recent Droid update?

    I had an update pushed to my Droid 2 yesterday. Is there a page somewhere that describes what changed? My version info says: - System Version: Version 2.3.20.A955.Verizon.en.US - Android Version: 2.2 Thanks.

  • Serious Battery Problem: Lack of Charge and Quick Drain

    I have a 15" Macbook Pro purchased late July/early August 2008, model number A1260 and has its software completely updated. I use the computer every day and, aside from the occasional cycling after getting the battery charge down to 0%, charge the co

  • Question on Electronic bank statement

    HI, i am working on SWIFT MT 940 for uploading the EBS for customers. and want to use only SAP standard no customization (user exits) what are the details the bank statement should contain inorder to do posting to bank and clear the document of F110.

  • Total Only in Web Layout

    If I may, I have a nagging question on setting up a layout that contains totals. We have a display only form that contains cost elements with a column for Actuals and a column for Plan so people can do a quick look to compare. The problem is the Plan

  • Non Numeric data

    Hi, Why Essbase database can store only "numeric" data is there any workaround to store "non-numeric" data in Essbase