OC4J Problem

Hello
I have created Servlet Application.
Now when i run JDeveloper and run the BIController (by default it starts OC4J i.e. :-
Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
D:\jdev\jdk\bin\javaw.exe -ojvm -classpath D:\jdev\j2ee\home\oc4j.jar;D:\jdev\jdev\lib\jdev-oc4j.jar -Doc4j.userThreads=true -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 com.evermind.server.OC4JServer -config D:\jdev\jdev\system9.0.3.4.1247\oc4j-config\server.xml
[waiting for the server to complete its initialization...]
Ready message received from Oc4jNotifier.
Embedded OC4J startup time: 17109 ms.
Target URL -- http://192.168.1.243:8988/Proj-Workspace-Profitable-Products-context-root/mypackage1.BIController1
Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
When this is done clients can access through browser using url: -
http://192.168.1.243:8988/Proj-Workspace-Profitable-Products-context-root/mypackage1.BIController1
I want that client can access this in a scenarion that i don't have to run JDeveloper (OC4J)
Plz some one tell me that how to run embedded OC4J without JDevloper with configuration same as in JDeveloper i.e.
Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
D:\jdev\jdk\bin\javaw.exe -ojvm -classpath D:\jdev\j2ee\home\oc4j.jar;D:\jdev\jdev\lib\jdev-oc4j.jar -Doc4j.userThreads=true -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 com.evermind.server.OC4JServer -config D:\jdev\jdev\system9.0.3.4.1247\oc4j-config\server.xml
[waiting for the server to complete its initialization...]
Ready message received from Oc4jNotifier.
Embedded OC4J startup time: 17109 ms.
Target URL -- http://192.168.1.243:8988/Proj-Workspace-Profitable-Products-context-root/mypackage1.BIController1
Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
In simple words i want to do all that (above) without opening Jdeveloper so that clients can access through browser. (Note:- i don't want to deploy it to application server or to any other tech,.....)

hi
usually the application is deployed to an application server, please note that the oc4j itself is intended only for development purpose and not ment for a production system. this is because it lacks the clustering/failover/etc features
if you want to try the "deployment", here is what you can do:
either download the oc4j (just for testing) or use the one supplied with jdeveloper.
if using the one from jdeveloper do the following (assuming you run under windows):
open a dos prompt and set the path the following way:
set path=YOUR_JDEV_HOME\jdk\bin;%PATH%
cd YOUR_JDEV_HOME\j2ee\home
java -jar oc4j.jar -install
you now get prompted for the admin password
start your oc4j:
java -jar oc4j.jar
o)afterwards, create a "deployment profile" within your project
o)put all the files together
o)create a new delopyment connection (oc4j standalone) and deploy it to your recently configured oc4j
o) thats it
note: i recommend you tune the deployment profile and change the name of your webapp and the context as well
"Proj-Workspace-Profitable-Products-context-root" isnt very fancy ;)
regards,
thomas

Similar Messages

  • Clustered Oracle 9i AS and OC4J Problem

    Hi,
    I am working with two Oracle 9i AS (9.0.2.0.1), serverA and serverB, in a clustered environment. I have published a servlet to the cluster under the URL of /MyApp and the main servlet is MyServlet. I have noticed that when I go to either URL:
    http://serverA/MyApp/MyServlet
    or
    http://serverB/MyApp/MyServlet
    my servlet will show up fine but sometimes when going to serverA it will actually use the servlet running on serverB, and vice versa. I am able to verify this by looking at the log files. At first I wasn't sure why it would do this but it makes sense that in a clustered environment it would pick either of the servers to load balance the application. After reading some Oracle documentation it re-enforced the way the AS works.
    Recently I have noticed some problems with the cluster though but can't seem to pin-point the problem. When I go to either URL it will sometimes bring up the servlet web page but other times it will give an error of:
    No Response from Application Web Server
    Upon further investigation I noticed that the page would come up fine any time it tried to use the servlet on serverA but it seems that when it tries to use the servlet on serverB it returns the error. The problem is I am having a hard time verifying that serverB is causing problems or if it is something with the communication between the two servers. As far as I can tell in the Oracle EM it shows both OC4J containers running fine and all the other standard containers are running as well. Some testing that I have done is turning off the OC4J container on serverB. When I do this I stop getting any errors. Checking the opmn log for the containers doesn't give any information on the errors.
    Has anyone had similar problems? Might someone know how to properly test / troubleshoot the problem to see where things are messing up? Anyone have a solution?
    Thanks

    This is the way it works in 903 as well.
    There is a more general forum for 9iAS questions on this site, where other product managers who look after other areas of the product answer questions. It might be worth your while to post your question there and one of the PMs from the management team might be able to shed some light on the issue with respect to a future release.
    -steve-

  • OC4J problem and End of TNS data channel

    We are using Oralce 9iAS with OC4J to host our java application. Recently, we kept having problem with the application. The problem is when user enters username and password to login, the application doesn't do anything until we restart OC4J instance. After tracking down all the error log files, it looks like problem happened whenever the application get "SQL Exception: End of TNS data channel" error. I don't know why are we getting this "End of TNS data channel" error. I don't think it is the application's problem.
    1)Does anybody have any idea why?
    2)Does OC4J server need to be restarted every once a while.
    Thanks in advance.

    Hi Liya -
    "End of TNS data channel" is usually a message sent by the database when something erroneous is occuring.
    What version of the database, JDBC, and JDK are you using?
    Are you getting any dump files from the database?
    Can you describe a little more about what the application code is doing?
    There is some good information on this error message at the following URL
    http://forum.java.sun.com/thread.jsp?thread=280338&forum=48&message=1090056
    -steve-

  • Jdeveloper + OC4J Problem

    Hi all,
    I have an application that runs fine on tomcat and any other app server. When I try to run it from within Jdeveloper, for some reason I get all sort of class-loader or xml parsing problems.
    So it turns out that embedded oc4j tries to use its own xml parser, its own struts jar and this causes a lot of problems and it throws errors and I can't run this app.
    Please how do I turn off jdeveloper/embedded OC4J from using its own jars and rather just run the app, since the app has all needed libraries ?
    Here's a sample error -
    SEVERE: MessageResourcesFactory.createFactory
    oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: org.apache.struts.util.PropertyMessageResourcesFactory
         Dependent class: org.apache.struts.util.RequestUtils
         Loader: current-workspace-app.web.zeims-c:0.0.0
         Code-Source: /C:/devtools/java/jdeveloper/jdev/mywork/zeims/customer/lib/struts.jar
         Configuration: <classpath> in C:\devtools\java\jdeveloper\jdev\mywork\zeims\customer\public_html
    This load was initiated at current-workspace-app.root:0.0.0 using the loadClass() method.
    Pls help !!!

    I think that i they works is lucky, because your two modules get managed through the same class loader in your standalone oc4j
    Correct if I'm wrong, but you should not trust using local references if they aren't implemented in the same instance of the classloader, which you can control

  • Mapviewer OC4J problem

    I installed OC4J, Mapviewer and the mapviewer demo
    Now some Mapviewer demos and examles work, I can connect to the database, but I cannot start any OC4J-jsp or Mapviewer-jsp demo.
    Selecting a jsp demo (i.e. •     jview.jsp A simple no hassle spatial data viewer) in the internet explorer I get the message:
    The page cannot be displayed
    There is a problem with the page you are trying to reach and it cannot be displayed.
    The OC4J process reports the following error:
    04/09/22 11:50:46 IOException in compile: CreateProcess: javac.exe -J-Xmx1024m -
    classpath oc4j.jar;D:\oc4j\j2ee\home\lib/ejb.jar;D:\oc4j\j2ee\home\lib/servlet.j
    ar;D:\oc4j\j2ee\home\lib/ojsp.jar;D:\oc4j\j2ee\home\lib/jndi.jar;D:\oc4j\j2ee\ho
    me\lib/jdbc.jar;D:\oc4j\j2ee\home\iiop.jar;D:\oc4j\j2ee\home\iiop_gen_bin.jar;D:
    \oc4j\j2ee\home\lib/jms.jar;D:\oc4j\j2ee\home\lib/jta.jar;D:\oc4j\j2ee\home\lib/
    jmxri.jar;D:\oc4j\j2ee\home\lib/javax77.jar;D:\oc4j\j2ee\home\lib/javax88.jar;D:
    \oc4j\j2ee\home\../../opmn/lib/ons.jar;D:\oc4j\j2ee\home\../../opmn/lib/optic.ja
    r;D:\oc4j\j2ee\home\../../lib/dms.jar;D:\oc4j\j2ee\home\../../dms/lib/dms.jar;D:
    \oc4j\j2ee\home\lib/connector.jar;D:\oc4j\j2ee\home\lib/cos.jar;D:\oc4j\j2ee\hom
    e\lib/jsse.jar;D:\oc4j\j2ee\home\../../oracle/lib/jsse.jar;D:\oc4j\j2ee\home\lib
    /jnet.jar;D:\oc4j\j2ee\home\lib/jcert.jar;D:\oc4j\j2ee\home\lib/activation.jar;D
    :\oc4j\j2ee\home\lib/mail.jar;D:\oc4j\j2ee\home\../../javavm/lib/jasper.zip;D:\o
    c4j\j2ee\home\../../lib/xmlparserv2.jar;D:\oc4j\j2ee\home\../../oracle/lib/xmlpa
    rserv2.jar;D:\oc4j\j2ee\ho?
    Has anybody an idea what is wrong?
    The operating system is Windows 2000, German version.
    The OC4J is the latest version (dowloaded last week),
    the database is Oracle 10g, 10.1.0.2 enterprise edition.

    this is definately caused by using the wrong java program. Please check the following:
    1. Are you using Java 1.4 or higher? to check, do 'java -version' from command line.
    2. Are you using the java executable located directly under a J2SDK's bin folder? If you are using any jre (Java Runtime Environment) java executable, OC4J wont be able to run the JSP pages.
    Also dont use the java that comes with your oracle database, as that is also a JRE only program. Instead, download the full j2sdk 1.4.2 from Sun.
    LJ

  • OC4J - PROBLEM 10g ( 9.0.4 ) - exception: ORA-01002

    I have application perfectly running in the version 9ias (OC4J 9.0.3) when I migrated for 10g (OC4J 9.0.4) I obtained the following mistake stopping my application.
    exception: ORA-01002: fetch out of sequence
    Data of the application:
         EJB CMP
         Version Database: Oracle 9.02
         Operating system: Solaris 64 bits
    I already made several researches and I verified the following problem:
    The table TB_CARDS have a lock-mode = "Pessimistic" in the file orion-ejb.xml. In the 9.0.4 we Monitored the access in the database and have syntax : select * from tb_carts for update ("select for update"), but in the version OC4J 9.0.3 it doesn't have the syntax "for update"
         Some people talk to me to put the autocommit equal false, however where i put this option because I´m using using CMP?
         Am I following the correct manageable ?
    I await suggestions
    Respectfully

    opps "originator" was suposed to read "workingDirectory"

  • Deploy standalone OC4J problem

    I'm pretty new Jdeveloper So Please help me.
    I'm very strange about my deploy.
    I downloaded OC4J in c:/Oc4J, and I did ADF Runtime Installer for Standalone OC4J.
    I can deploy my local host sucessfully.
    So now I tyied to deploy to our compuany server.
    I created application server, I put company's hostname at hostname when I created application server.
    And I tried to deploy my application to the application server.
    I got error.
    This is very strange for me.
    I downloaded OC4J at C:\OC4J_home, and I put OC4J_HOME for Oc4J root directory.
    But this is working with D drive like below whenere I try to deploy my application.
    What should I do?
    Can I change this directory?
    ---- Deployment started. ---- Dec 11, 2006 11:43:08 AM
    Target platform is Standalone OC4J 10g 10.1.3 (dev).
    Running dependency analysis...
    Wrote JAR file to C:\Documents and Settings\train2.SDC\Desktop\jdevstudio10131\jdev\mywork\customerMain1204\Model\deploy\ModelArchive.jar
    Wrote WAR file to C:\Documents and Settings\train2.SDC\Desktop\jdevstudio10131\jdev\mywork\customerMain1204\ViewController\deploy\CustomerMaintenance.war
    Wrote EAR file to C:\Documents and Settings\train2.SDC\Desktop\jdevstudio10131\jdev\mywork\customerMain1204\ViewController\deploy\CustomerMaintenance.ear
    Uploading file CustomerMaintenance.ear ...
    Uploading file CustomerMaintenance.ear ...
    Uploading file CustomerMaintenance.ear ...
    Uploading file CustomerMaintenance.ear ...
    Uploading file CustomerMaintenance.ear ...
    Uploading file CustomerMaintenance.ear ...
    Uploading file CustomerMaintenance.ear ...
    Uploading file CustomerMaintenance.ear ...
    Application Deployer for CustomerMaintenance STARTS.
    Copy the archive to D:\oc4j\j2ee\home\applications\CustomerMaintenance.ear
    Initialize D:\oc4j\j2ee\home\applications\CustomerMaintenance.ear begins...
    Unpacking CustomerMaintenance.ear
    Done unpacking CustomerMaintenance.ear
    Unpacking CustomerMaintenance.war
    Done unpacking CustomerMaintenance.war
    Initialize D:\oc4j\j2ee\home\applications\CustomerMaintenance.ear ends...
    Starting application : CustomerMaintenance
    Initializing ClassLoader(s)
    Initializing EJB container
    Loading connector(s)
    Starting up resource adapters
    Initializing EJB sessions
    Committing ClassLoader(s)
    Initialize CustomerMaintenance begins...
    Initialize CustomerMaintenance ends...
    Started application : CustomerMaintenance
    Binding web application(s) to site default-web-site begins...
    Binding CustomerMaintenance web-module for application CustomerMaintenance to site default-web-site under context root customerMain
    Exception: NoClassDefFoundError: oracle/jbo/JboException
    Operation failed with error:
    oracle/jbo/JboException
    Deployment failed
    Elapsed time for deployment: 1 minute, 18 seconds
    #### Deployment incomplete. #### Dec 11, 2006 11:44:24 AM

    S,
    Yes, causes a bit of a problem, the fact that all Oracle products tend to rely on the ORACLE_HOME environment variable.
    In any case, this issue has been discussed previously in this forum. I suggest you search the forum archives for "ORACLE_HOME".
    Good Luck,
    Avi.

  • Rmi to Oc4j Problem

    Hi,
    we have the following problem:
    We want to call an Enterprise Java Bean from an Oracle10g DataBase. The Ejb is deployed in an Oc4j-ApplicationServer.
    When we try to get the Initial-Context on the DataBase, then we get an error which tells us that the class which implements this Functionallity is not found:
    .javax.naming.NoInitialContextException: Cannot instantiate class: oracle.j2ee.rmi.RMIInitialContextFactory [Root exception is java.lang.ClassNotFoundException: oracle.j2ee.rmi.RMIInitialContextFactory]
    I think that it is in the oc4jclient.jar file which comes with the jDeveloper installation.
    When we try to send the oc4jclient.jar via loadjava to the database we get some errors during the deployment. When we look at the deployed classes we see that many classes are invalid because of missing classes.
    Has anybody an Idea how to fix this?
    (This is really urgent)
    Regards
    Jan

    hi Jan,
    I have few links which may help u .
    1. http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/howtoORMIS/doc/how-to-ORMIS.html
    2.
    http://www.oracle.com/technology/tech/java/oc4j/htdocs/how-to-rmi-iiop.html
    3.
    re:Accessing EJB on OC4J from Oracle 8.1.7.3
    Trinath Somanchi,
    Hyderabad.

  • 10.1.3 EA1 library deployment to standalone oc4j problem

    I'm having trouble getting a library to deploy with EA1. It deployed OK with 10.1.3 DP.
    The deployment consists of the ViewController and Model projects (as created by jdev) plus a third project I created called businessobjects.
    The problem lies with a library that fails to be deployed but is needed by the Model and businessobjects projects. This results in "Missing class" error messages. (BTW, the library consists of a directory and a jar).
    With 10.1.3 EA1 under War Deployment Profile Properties>WEB-INF/lib>Contributers, the library does not show up whereas it does with 10.1.3 DP. As far as I can see it looks like I've specified all the dependancies and check-marked the appropriate boxes but obviously I must be doing something wrong.
    The application runs as expected within jdev.
    Anyone have any specific places I should double check?
    Regards,
    Al Malin

    Don't worry,
    It just means that the embedded server inside JDeveloper is a developer preview version. The OC4J team uses a different way to name their "early access" releases.

  • CMB accessing remote OC4J problem

    I create a CMBean from table, before using this CMB accesses remote OC4J,all are right (deploy is ok,testing in embedded oc4j is ok,even using session bean accessing remote OC4J is ok)
    the client code is:
    try
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    env.put(Context.PROVIDER_URL, "ormi://cly:23791/emp");
    Context ctx = new InitialContext(env);
    EmpHome empHome = (EmpHome)ctx.lookup("Emp");
    Emp emp;
    The console displays:
    javax.naming.NamingException: Lookup error: java.io.IOException: Class Not Found: com.evermind.server.ejb.DummyRemote; nested exception is:
         java.io.IOException: Class Not Found: com.evermind.server.ejb.DummyRemote
         java.lang.Object com.evermind.server.rmi.RMIContext.lookup(java.lang.String)
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
         void Samplepk.EmpClient2.main(java.lang.String[])
    Process exited with exit code 0.
    How can solve this problem

    Hi Chen,
    I assume you mean CMP entity bean (when you talk about a "CMB").
    However, what I cannot deduce is, what OC4J are you referring to:
    1. OC4J in JDeveloper
    2. OC4J stand-alone
    3. OC4J in 9iAS
    [and which version(s) of the above]
    I'm only guessing, but perhaps you have developed your (CMP entity) bean in JDeveloper, and are trying to deploy it in either OC4J stand-alone or 9iAS, correct?
    If this is the case, you may have a compatibility mismatch between the various products (JDeveloper, OC4J, 9iAS).
    Personally, I only use OC4J stand-alone. I don't use JDeveloper, and I use the tools that come with OC4J stand-alone to deploy my EJBs.
    Hope this helps.
    Good Luck,
    Avi.

  • JAX-RPC on OC4J (Migrating from TOMCAT to OC4J) Problems

    I am attempting to compile and build a simple web service
    to using wsdeploy from Sun's JWSDP1.2. It works fine on Tomcat but when I try to deploy it to OC4J. I get the following error:
    7/23/03 11:58 AM Internal error in HttpServer
    java.lang.ClassCastException: com.evermind.naming.ContextClassLoader
         at com.sun.xml.rpc.server.http.JAXRPCContextListener.contextInitialized(JAXRPCContextListener.java:52)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:583)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:374)
         at com.evermind.server.Application.getHttpApplication(Application.java:657)
         at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:663)
         at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:387)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:378)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)7/23/03 3:53 PM 9.0.2.0.0
    I've come to notice that Oracle's WebServicesAssembler doesn't use com.sun.xml.rpc.server.http.JAXRPCContextListener but instead uses something else. When the JAXRPCContextListener starts to initialize it trys to perform the following operation:
    classLoader = (URLClassLoader)Thread.currentThread().getContextClassLoader();
    Is there any way to remedy this?? Or is there anything I can do to get this to work??
    Thanks
    Mike

    Have you deployed JAX-RPC onto OC4J? We currently do not have JAX-RPC available on OC4J.
    Mike.

  • Migrating from JServ to OC4J: problems with XSQLServlet configuration

    I'm trying to move an application using xsql pages from 9iAS to 10g (9.04). Development is currently done under JDev9 (9.02) an its OC4J standalone server.
    I guess I've done most of the configurations, since the application is working correctly now, BUT only with the connections defined statically in the XSQLConfig.xml of the XSQLServlet. On JServ, we implemented our own connection manager to pass our connections to the XSQLServlet as defined by the <connection-manager><factory> tag. Now, under OC4J, this no longer works:
    The log files tells:
    Failed to create custom connection manager factory: "our.connection.manager.factory": Using default.
    And with the default one, we get of course the 'cannot acquire database connection' error message which is ok, since we're not using one of those defined under XSQLConfig.xml...
    Background: Our connection manager is contained in a jar file with many other classes. These are visible to the 2 applications ("P" and "T") we're running successfully under OC4J Standalone. As I interprete the message as the XSQLServlet not being able to create an instance of our ConnectionManager, I guess I missed somewhere an library or classpath entry??
    Many thanx for any hints!

    There was a generic Migration guide produced for the earlier 9.0.2 release with some content on migrating from JServ to OC4J.
    http://download-west.oracle.com/docs/cd/A97331_08/migrate.902/migrate/intapps.htm#1006415
    It's hard to provide much help without more details.
    cheers
    -steve-

  • Simple OC4J Problem. Can't open localhost error: 404 Not Found

    Hi, I am a new to Oracle Application developmen. I just installed Application server 10g R1 [ as where i am doing an internship they are using this version]. I have installed OC4J as guided in installation guide. But when it comes to testing the oc4j server, as they ask to test it by this url: http://localhost:8888/ .. On chrome it gives an error: 404 Not Found Resource / not found on this server and on internet explorer it gives: The page cannot be displayed.
    Your response will be highly appreciated. Thankyou

    Instead of redirect add the default suffix in web.xml.
    <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.jsf</param-value>
    </context-param>

  • Weird error message from oc4j with EntityBean

    We have an J2EE application written originally to run on Orion 1.4.5.
    We have decided to try to port this to oc4j and the version we are using is 1.0.2.2
    There is some minor reconfiguration issue but nothing really major.
    All the servlet, jsp, and stateless session EJB runs without any problem.
    However, all the CMP EntityBean doesn't seem to like their new home.
    During deployment, the container will complaints about every single EntityBean with error message like the following:
    JavaApplication_EntityBeanWrapper33.java:358: Exception java.sql.SQLException is never thrown in the body of the corresponding try statement.
    catch(java.sql.SQLException e)
    JavaApplication is one of our CMP EntityBean and the Wrapper is supposingly created automatically by the container at deployment time.
    Has anyone encountered this before? Any work around/solutions?
    Thanks in advance
    Andrew
    null

    gday Andrew -
    I believe that this is caused by setting the attribute exclusive-write-access=false in the orion-ejb-jar.xml file for your EJBs.
    This is a known OC4J problem: a bug has been logged and it's been fixed here. The next minor release of OC4J will contain the fix for this.
    In the meantime as a workaround removing the exclusive-write-access=false attribute from the orion-ejb-jar.xml files for your beans should get you going.
    cheers!
    -steve.
    null

  • Oracle bug? - Oracle opinion welcomed (copy of post in OC4J forum)

    Hi,
    We are trying to run two web modules (A and B) on OC4J 10g standalone (on Windows 2000/XP), but we are facing a big problem.
    After much investigation we really think it is a OC4J bug, but we are opened to any opinion or solution...
    The problem is that a servlet or jsp on the web module B sometimes seems processed by OC4J by a thread created for the other web module A. As a consequence, if in the servlet (in fact in the method of a class instanciated in the servlet...) of B, we perform :
    ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
    then we get the classloader of the web module A, and then we are not able to instantiate a class of B and get a "ClassNotFoundException".
    This problem does not always happens. It is random even if it seems to have much more chance to happen if we execute requests on both modules in a little delay.
    We tried running the two web module in a single EAR or in two separate EAR but it made no difference.
    A debug of OC4J (with Eclipse 2.1) consolidates our mind it is a OC4J problem. Here is the kind of pile of execution we get for a thread HTTPRequestHandler of OC4J :
    [top of pile]
    ServletRequestDispatcher.forwardInternal(ServletRequest, HttpServletResponse) line 317
    HttpRequestHandler.processRequest(ApplicationServerThread, EvermindHttpServlet, ...) line 790
    => in this method we have the attributes :
    - thread.contextClassLoader = the one of web module A
    - request.application.name = module_B_name and request.application.contextPatch = module_B_contextpath
    ApplicationServerThread(Thread).run() line: 536
    We already met classloader problems and resolved them putting some common librairies of A and B in the applib directory. But this can not be envisaged for our new problem. Moreover we want to keep a "parent first" classloading.
    Has someone already met similar problems ?
    Thanks for any help.

    Thanks for the answers.
    I use a OC4J 10g 9.0.4 version but an evaluation version so I have no support id for a TAR.
    Sorry if my problem is difficult to understand (maybe it's my english which is difficult to understand!), but it is really difficult to explain...
    In fact the OC4J output does not show the classloading problem.
    I use Struts in the two WAR modules, and, for those who know Struts, it appears that I sometimes get a nullPointerException because in a Struts action my ActionForm is null (which should never happened). To find why the ActionForm is null I debug my application with Eclipse and I found the ActionForm was instanciated with the following code (classname is the name of a class extending the ActionForm class):
    // Look up the class loader to be used
    ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
    if (classLoader == null) {
    classLoader = RequestUtils.class.getClassLoader();
    // Attempt to load the specified class
    return (classLoader.loadClass(className));
    It appears that classLoader.loadClass(className) throws a ClassNotFoundException, and Struts, instead of throwing the exception, returns a value null for the ActionForm.
    With the debug I watch which classloader was used and I was surprised to see it was the classloader of my other WAR module. Though the struts servlet is well called on the good web application, and all the struts class are in the web-inf/lib directory of each application.
    I'm not sure this will make my problem easier to understand. Thanks for all who will make the effort of understand.
    emmanuel

Maybe you are looking for

  • Database storage vs. File system

    Hi, We'll be setting up a new Oracle UCM 10g* environment in a production scenario - we have access to high-speed SAN for file storage, but we can also use an Oracle 11g database for file storage (using the File Store Provider) - the database's table

  • Songs stuck on ipod

    I bought some songs on iTunes yesterday and synched them to my iPod touch, but for some reason the songs were doubled, and the extra ones won't play, don't have album artwork or anything. I have tried restoring my iPod with iTunes, and they were stil

  • Edit menu in PFCG

    Dear Experts, I am trying to create a role which I have copied from the SAP Standard SAP_WPS_BC_BASIS_ADMIN MiniApps System Administrator.  However the menu tab is Blank and I am not sure if I simply add the transactions that are in the authorisation

  • E-rec: Can we delete a Job Posting?

    e-rec experts, Our users inadvertently create Job Postings in the Requisition.  We need to get rid of the unwanted postings. Is there a way to delete Job Postings. -Dominic

  • HELP: InDesign CC 2014 simply does not perform the action pack

    HELP: InDesign CC 2014 simply does not perform the action pack. Why?