OJMS in Jdeveloper 10.1.3 OC4J

Is it possible to use ojms in the embedded oc4j instance?
Thanks

Can we not run JMS applications within JDeveloper ? I'd like to test out a MDB linked to a JMS Topic/Queue.
I noticed the embedded OC4J server has jms.xml file however i cannot connect to it when i run my web application i get a NameNotFoundException on Topic connection factory.
Why is this not supported ? Is there an up to date article on how to create an MDB application linked to a JMS destination within JDev 10.1.3 ?
Gurinder

Similar Messages

  • JDeveloper version numbers and OC4J version numbers

    Hi all,
    I know that the version numbers of the Oracle application server and the OC4J plugin are the same the default, but how is that with JDeveloper compared to the OC4J version of the embedded JDeveloper application server.
    Is it the same always and if not where can I find a mapping table. E.g. is for JDeveloper version 10.1.3 also the OC4J container version 10.1.3 etc.
    regards,
    Ronald

    Ronald,
    yes, Oracle JDeveloper versions are in synch with OC4J and 10.1.3 JDeveloper uses OC4J 10.1.3.
    Frank

  • Cannot test portlet using JDeveloper and built-in OC4J

    Hi everybody,
    I'm not trying to sound stupid but my problem seems to be very basic but i cannot solve it. I'm new to Jdeveloper. Here's my problem.
    I'm using Jdeveloper 10.1.2.1.0 (build 1913) to develope a portlet. I deployed it to the built-in Standalone OC4J of Jdeveloper and got the following messages:
    ---- Deployment started. ---- Sep 6, 2006 7:46:11 PM
    Target platform is Standalone OC4J (AppServerConnection2).
    Wrote WAR file to D:\jdev1012\jdev\mywork\Uma_OWHO\Uma\deploy\UmaPortlets.war
    Wrote EAR file to D:\jdev1012\jdev\mywork\Uma_OWHO\Uma\deploy\UmaPortlets.ear
    Invoking OC4J admin tool...
    D:\jdev1012\jdk\jre\bin\javaw.exe -jar D:\jdev1012\j2ee\home\admin.jar ormi://cuongttlabtop/ admin **** -deploy -file D:\jdev1012\jdev\mywork\Uma_OWHO\Uma\deploy\UmaPortlets.ear -deploymentName UmaPortlets
    checkIsLocalHost() error: cuongttlabtop/: cuongttlabtop/
    Uploading file D:\jdev1012\jdev\mywork\Uma_OWHO\Uma\deploy\UmaPortlets.ear to oc4j server side
    Notification ==> Application Deployer for UmaPortlets STARTS [ 2006-09-06T19:46:17.406ICT ]
    Notification ==> Undeploy previous deployment
    Notification ==> Copy the archive to D:\jdev1012\j2ee\home\applications\UmaPortlets.ear
    Notification ==> Unpack UmaPortlets.ear begins...
    Notification ==> Unpack UmaPortlets.ear ends...
    Notification ==> Initialize UmaPortlets.ear begins...
    Notification ==> Initialize UmaPortlets.ear ends...
    Notification ==> Initialize UmaPortlets begins...
    Notification ==> Initialize UmaPortlets ends...
    Notification ==> Application Deployer for UmaPortlets COMPLETES [ 2006-09-06T19:46:19.000ICT ]
    Exit status of OC4J admin tool (-deploy): 0
    D:\jdev1012\jdk\jre\bin\javaw.exe -jar D:\jdev1012\j2ee\home\admin.jar ormi://cuongttlabtop/ admin **** -bindWebApp UmaPortlets UmaPortlets http-web-site /UmaPortlets
    checkIsLocalHost() error: cuongttlabtop/: cuongttlabtop/
    Exit status of OC4J admin tool (-bindWebApp): 0
    Use the following context root(s) to test your web application(s):
    http://cuongttlabtop:8888/UmaPortlets
    Elapsed time for deployment: 12 seconds
    ---- Deployment finished. ---- Sep 6, 2006 7:46:23 PM
    When i tried to access the URL: http://cuongttlabtop:8888/UmaPortlets by Mozilla Firefox nothing came up instead : 403 Forbidden Directory browsing not allowed
    Please help me everybody!!!!! It's urgent. My boss will check my work on this Friday :((.

    I tried to access both URL you gave me and got the error:
    404 Not Found
    Resource /UmaPortlets/providers not found on this server
    I really dont understand what's going wrong here?? I followed exactly what Oracle tutorials tell me :(

  • JDeveloper ADF Deployment to OC4J

    Have developed a UIX/JSP in JDeveloper 9.0.5.2. It works fine as expected with the JDeveloper embedded OC4J server.
    JSP is a master detail page, can scroll through master records and see detail lists. Deployment is successful to standalone OC4J...But it does not work there, behaviour is this: on startup, first master record is displayed, but no details...then next button(s) do not work. Have deployed a WAR, have gond through JDev library installations for OC4J, etc....but page initially displays first master record, then does nothing else.
    Where can I find a detailed deployment how-to page for deploying to OC4J? I have been through several already, but something is still missing.
    Regards,
    Mark R

    Try the steps detailed in the reviewer guide for JDeveloper. (page 26). http://otn.oracle.com/products/jdev/collateral/papers/10g/reviewer/reviewerguide.html

  • JDeveloper 9i RC and OC4J virtual directory

    Hi,
    How can I configure the following tags from my tomcat/catalina "server.xml" file to JDeveloper OC4J?
    <context path="/images" docBase="c:\images"/>
    <context path="/javascript" docBase="c:\javascript"/>
    <context path="/styles" docBase="c:\styles"/>
    I have tried adding the following entries to the "%JDEV_HOME%\jdev\system\oc4j-config\global-web-application.xml" without success.
    <virtual-directory real-path="c:\images" virtual-path="/images" />
    <virtual-directory real-path="c:\javascript" virtual-path="/javascript" />
    <virtual-directory real-path="c:\styles" virtual-path="/styles" />
    As a work-around I have copied these directories to the default-web-app root directory.
    Your assistance would be greatly appreciated.
    Thanks,
    David

    Try this in the orion-web.xml for your web application.
    Assuming you all your images in a directory called e:\pictures and you want to add this /img virtual directory you have to edit the orion-web.xml file for your web application as follows:
    <virtual-directory
    virtual-path="/img"
    real-path="/e:/pictures/" />
    regards
    Debu panda
    Oracle

  • Win JDeveloper war file to oc4j instance on solaris??

    Hi,
    I have been trying to get a war file that I deployed on JDeveloper (windows release candidate) set up on my solaris oc4j( version 2 dev release). I read on this forum these directions:
    "Right click on the myproject.jpr in the JDev navigator and select 'new...', go to Deployment Profiles and select J2EE Web Module (WAR File) - a general screen will pop up asking you to save the deployment profile (you can just use the default if you want). Once you select OK on that, you will get a screen that calls itself the J2EE Web Module Deployment Profile Settings. This is the screen that you can use to enter your information.
    Your servlet and javabean classes will go into WEB-INF/classes subdirectory that you see to your left in this window. Simply select the WEB-INF/classes entry and it will display a list of your java sources (it will only place the compiled output in this directory - there is a toggle for it).
    Once you have specified that your javabean and servlet classes go in this directory, you should be set. Go ahead and save / close. In your navigation screen under your project (myproject.jpr or whatever your project name is) you will see your files, jsps, etc and something called webapp1.deploy (if you accepted the default). If you right-click on that, you will get a menu that asks a number of things, one of which is to Deploy to EAR file. Select that entry and it will create an ear file for you. You can play with the various settings to change the name of the ear file, but that's about all you have to do. Once this is completed, you can put the EAR file on your linux box or wherever you want, adjust your server.xml and default-web-app.xml files and launch the app!
    EXCEPT...I did not deploy to EAR ; I deployed to war and then I just modified two config files (under j2ee/home/config)
    application.xml
    <web-module id="notesWar" path="../../home/applications/notesWar.war" />
    and default-web-app.xml
    <web-module id="notesWar" path="../../home/applications/notesWar.war" />
    This seems to work , but when I set up my project in JDeveloper, I specified a target file to run, and within JDeveloper it includes the directory not just the file (which is a windows directory) so I am thinking that when I try to deploy on unix, it doesn't know what target file to run bc it can't find it, but I don't know that that information is even included in the war file... is there somewhere else you specify when you are deploying the war file which html, jsp, etc. needs to be run first. By the way, when I launch the application on the solaris oc4j via war deployment, it goes to the first html file listed in the war (I need it to go the second html file first).

    Hi,
    I am sorry; I mistyped....
    I already configured default-web-site.xml with the above values.
    The war file will run on the solaris oc4j instance, but it just
    runs the wrong initial html. I need a login to be the target
    page, but I don't know how to specify that for my particular
    situation.
    If I run the application within JDeveloper on Windows
    without a war file, it works. I run like this...
    Right click on the (.jpr) project file and run...it will go to the
    correct run target bc I have specified within the project
    settings, the default run target, but when i try to run as a war,
    it does not go to the correct run target so I need to know how to
    specify a default run target for a war file. I did create the
    war after I specified the default run target.
    Thank you!

  • Jdeveloper Deployment issue with OC4J

    I am using JDEVELOPER with Standalone Version of OC4J. I am trying to deploy the application EAR file generated using JDEVELOPER deploymnent wizard in to Standalone instance of OC4J. I am having issue with the Application server connecton wizard.
    I do not know the 'admin' password of the OC4J standalone instance. I am able to start the instance with 'java -jar oc4j.jar'. I am able to access the instacne with
    http://localhost:8888.
    I am having issue with the Application server connecton wizard. It requires 'admin'
    password to create a connection with the app server. The deployment could not succeed without the password.
    I would appreciate feedback and suggestons.
    Thanks.
    Palani

    This will reset the password to welcome for you (I've had this problem too - it happens if OC4J doesn't shutdown properly)
    java -jar oc4j.jar -install
    Enter an admin password to use: welcome
    Confirm admin password: welcome
    Installation done

  • Cabnt deploy jdeveloper 11g application to oc4j

    [18.10.2010 9:11:43] Application Deployer for kiss111 STARTS.
    [18.10.2010 9:11:43] Copy the archive to /usr/oc4j_extended/j2ee/home/applications/kiss111.ear
    [18.10.2010 9:11:43] Initialize /usr/oc4j_extended/j2ee/home/applications/kiss111.ear begins...
    [18.10.2010 9:11:43] Unpacking kiss111.ear
    [18.10.2010 9:11:45] Done unpacking kiss111.ear
    [18.10.2010 9:11:45] Unpacking client_war.war
    [18.10.2010 9:11:48] Done unpacking client_war.war
    [18.10.2010 9:11:48] Initialize /usr/oc4j_extended/j2ee/home/applications/kiss111.ear ends...
    [18.10.2010 9:11:48] Starting application : kiss111
    [18.10.2010 9:11:48] Initializing ClassLoader(s)
    [18.10.2010 9:11:48] Initializing EJB container
    [18.10.2010 9:11:48] Loading connector(s)
    [18.10.2010 9:11:48] Starting up resource adapters
    [18.10.2010 9:11:48] Initializing EJB sessions
    [18.10.2010 9:11:48] Committing ClassLoader(s)
    [18.10.2010 9:11:48] Initialize client_war begins...
    [18.10.2010 9:11:48] Initialize client_war ends...
    [18.10.2010 9:11:48] Started application : kiss111
    [18.10.2010 9:11:48] Binding web application(s) to site default-web-site begins...
    [18.10.2010 9:11:48] Binding client_war web-module for application kiss111 to site default-web-site under context root client_war
    [18.10.2010 9:11:49] Operation failed with error: Error loading listener 'oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack', class not found
    what can be wrong?

    Pl ensure you are using the correct version of JDeveloper for use with EBS. Pl see these MOS Docs
    OA Framework - How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12.x [ID 416708.1]
    Configuring JDeveloper For Use With Oracle Applications 11i and R12 [ID 330236.1]
    Troubleshooting JDeveloper setup for Oracle Applications [ID 357218.1]
    HTH
    Srini

  • JDeveloper 10.1.3.4.0 OC4J Proxy

    I am having problems with JDev when I use Proxy settings, my PC uses Proxy server through VPN Client, this configuration worked fine until recently, today I recieved my new laptop and got the error:
    [Starting OC4J using the following ports: HTTP=65000, RMI=65001, JMS=65005.]
    D:\JDeveloper\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\config>
    D:\Jdeveloper\jdk\bin\javaw.exe -client -classpath D:\JDeveloper\j2ee\home\oc4j.jar;D:\JDeveloper\jdev\lib\jdev-oc4j-embedded.jar -Dhttp.proxyHost=fw1.cummins.com -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=localhost|127.0.0.1|L3-A05109 -Dhttps.proxyHost=fw1.cummins.com -Dhttps.proxyPort=80 -Dhttps.nonProxyHosts=localhost|127.0.0.1|L3-A05109 -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\JDeveloper\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    17/02/2013 07:16:34 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    17/02/2013 07:16:34 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    13/02/17 07:17:02 java.net.ConnectException: Connection timed out: connect
    13/02/17 07:17:02      at java.net.PlainSocketImpl.socketConnect(Native Method)
    13/02/17 07:17:02      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    13/02/17 07:17:02      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    13/02/17 07:17:02      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    13/02/17 07:17:02      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    13/02/17 07:17:02      at java.net.Socket.connect(Socket.java:507)
    13/02/17 07:17:02      at java.net.Socket.connect(Socket.java:457)
    13/02/17 07:17:02      at java.net.Socket.<init>(Socket.java:365)
    13/02/17 07:17:02      at java.net.Socket.<init>(Socket.java:207)
    13/02/17 07:17:02      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.sendMessage(Oc4jNotifier.java:98)
    13/02/17 07:17:02      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.postInitApplicationServer(Oc4jNotifier.java:55)
    13/02/17 07:17:02      at com.evermind.server.ApplicationServer.serverExtensionPostInit(ApplicationServer.java:1202)
    13/02/17 07:17:02      at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1049)
    13/02/17 07:17:02      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
    13/02/17 07:17:02      at java.lang.Thread.run(Thread.java:595)
    13/02/17 07:17:02 Oracle Containers for J2EE 10g (10.1.3.4.0) initialized
    JDev does not launch the URL with Internet Explorer, however if I execute it out of VPN, the application runs normally and something important, if I re-connect to VPN, the URL works perfect and is able to connect with Oracle DB.
    Any help will be apreciated.
    Thanks.
    Edited by: 988530 on Feb 18, 2013 7:13 AM

    Did you ever find a solution for this?  I am having the exact same problem.  All I can figure out is that it has something to do with VPN, however the odd thing is that I can get it to work on an XP machine, just not Windows 7.  Both have the same VPN client and are identical copies of JDeveloper.

  • Embeded Oc4j server not starting up in Jdeveloper 10g 10.1.3.0.3

    hi,
    I have created simle hello.jsp , but i try to run it with the embedded OC4j server i get the following error .
    C:\jdk1.4\bin\javaw.exe -client -classpath C:\jdev\j2ee\home\oc4j.jar;C:\jdev\jdev\lib\jdev-oc4j-embedded.jar -Dhttp.proxyHost=172.16.233.34 -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=local.|localhost|127.0.0.1 -Dhttps.proxyHost=172.16.233.34 -Dhttps.proxyPort=8080 -Dhttps.nonProxyHosts=local.|localhost|127.0.0.1 -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\jdev\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    Sep 30, 2005 6:23:17 PM com.evermind.server.XMLDataSourcesConfig parseRootNode
    INFO: Legacy datasource detected...attempting to convert to new syntax.
    Error: cannot read: java.lang.Enum
    05/09/30 18:23:23 Application: system is in state FAILED
    05/09/30 18:23:23 Error initializing server: Error initializing ejb-modules: Error loading module file:/C:/jdev/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/applications/admin_ejb.jar: Syntax error in source or compilation failed in: C:\jdev\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\application-deployments\admin_ejb\generated\MBeanServerEjbRemote_StatefulSessionBeanWrapper0.java
    Error: cannot read: java.lang.Enum
    05/09/30 18:23:24 Fatal error: server exiting
    Process exited with exit code 1.
    Can anyone help

    The 10.1.3 version of JDeveloper (and the embedded OC4J) requires JDK 5.0 to run.
    You can however set your project to work with JDK 1.4 in the project properties.

  • JDBC datasoure that works for embedded OC4J server of JDeveloper 10.1.3.4

    Hi all,
    I have this in the Application Module as JDBC datasource: java:comp/env/jdbc/DBCON
    That works fine if I deploy the application on Oracle application- or tomcat-server.
    On the connections tab in JDeveloper I have made a database connection with the name DBCON.
    But when I run the application from Jdeveloper with the embedded OC4J server I get this error:
    Unable to lookup Data Source at context java:comp/env/jdbc/DBCON
    What do I do wrong?
    Thanks in advance.

    Hi,
    Edit the <application_name>-data-sources.xml file under the root directory of your application, and setup a managed data source and connection pool with the data source having the correct jndi name, eg. jdbc/DBCON
    You can either do this manually (which I find easier), or use the tool within JDev
    Tools - > Embedded OC4J Preferences -> Current Workspace -> Data Sources -> New
    -chris

  • JDeveloper 10g (10.1.3) 10.1.3 Developer Preview: can't start embedded oc4j

    With Oracle JDeveloper 10g (10.1.3) Developer Preview, I tried to make a simple jsp page as in this tutorial:
    http://www.oracle.com/technology/obe/obe9051jdev/visual_jsp/intro_to_visual_jsp.htm
    I only added some text then right-clicked file, selected Run. It didn't work:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config>
    /usr/java/j2sdk1.4.2/bin/java -client -classpath /my/home/data/opt/jdeveloper/j2ee/home/oc4j.jar:/my/home/data/opt/jdeveloper/jdev/lib/jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Xrs -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doracle.dms.sensors=NONE -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/server.xml
    [waiting for the server to complete its initialization...]
    05/04/08 09:02:24 Node started with id=127765687050882
    05/04/08 09:02:27 Auto-unpacking /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/applications/dms0.war... done.
    05/04/08 09:02:27 Auto-unpacking /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/applications/admin_web.war... done.
    Apr 8, 2005 9:02:29 AM com.evermind.server.XMLDataSourcesConfig parseRootNode
    INFO: Legacy datasource detected...attempting to convert to new syntax.
    05/04/08 09:02:37 Copying default deployment descriptor from archive at /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/connectors/datasources/datasources/META-INF/oc4j-ra.xml to deployment directory /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/application-deployments/default/datasources...
    05/04/08 09:02:37 Copying default deployment descriptor from archive at /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/connectors/OracleASjms/OracleASjms/META-INF/oc4j-ra.xml to deployment directory /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/application-deployments/default/OracleASjms...
    05/04/08 09:02:42 Copying default deployment descriptor from archive at /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/applications/admin_ejb.jar/META-INF/orion-ejb-jar.xml to deployment directory /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/application-deployments/default/admin_ejb.jar...
    05/04/08 09:02:42 Auto-deploying - applications/admin_ejb.jar (orion-ejb-jar.xml had been updated since the previous deployment)...
    05/04/08 09:02:45 Auto-deploying - compiling and loading...
    05/04/08 09:02:45 done.
    05/04/08 09:02:46 Error initializing server: Error initializing ejb-module; Exception java.io.IOException: /my/home/data/opt/jdeveloper/jdev/bin/ojc: cannot execute
    05/04/08 09:02:47 Fatal error: server exiting
    Process exited with exit code 1.
    For a simple stand-alone java application, it worked.
    I have sun jdk 1.4.2 on Fedora Core 3.
    Don't know if there are similar bug reports, I searched this forum for "10.1.3" but the search page stays like that for ~2 minutes, then stops without showing anything.

    Hello Frank,
    Thank you for your suggestion. I tried that and I got the same error. Looked more careful at it:
    Exception java.io.IOException: /my/home/data/opt/jdeveloper/jdev/bin/ojc: cannot execute
    I tried to execute it manually:
    $ l /my/home/data/opt/jdeveloper/jdev/bin/ojc
    -rw-rw-r-- 1 marius marius 1.9k Dec 2 19:20 /my/home/data/opt/jdeveloper/jdev/bin/ojc
    $ /my/home/data/opt/jdeveloper/jdev/bin/ojc
    bash: /my/home/data/opt/jdeveloper/jdev/bin/ojc: Permission denied
    Did
    $ chmod a+x /my/home/data/opt/jdeveloper/jdev/bin/ojc
    which solved the execution. Now Hello word works.
    I got jdeveloper as a .zip archive, which doesn't keep unix permissions. The Linux distribution should be in .tgz archive, it would have avoided this problem.
    Thanks!

  • OC4J Version with jDeveloper

    Hello, I've downloaded both jDeveloper 10g 10.1.3(J2EE) and
    10.1.2, I'm developing for an OAS 9.0.4 and I want to know which version of OC4J they come with.
    I want to develop with exactly the same version of the production server.
    Maybe I must use the jDeveloper 9.0.5.2 version..
    Could anyone give more information about that?
    Thanks!

    I have verified that the version number of jDeveloper matches with the oc4j that it comes with it.
    But i've also realized that the newer versions of jDeveloper comes with new interesting features. So my question now is can I change the OC4J embebed into jDeveloper? That way I could use the jDeveloper J2EE edition with a 9.0.4

  • JDeveloper 10.1.3 embeded OC4J can't host Apache CXF Service.

    I use JDeveloper 10.1.3 to created a test web application, which uses Spring and Apache CXF 2.0.3 hosting a sample web service, but when the application start the following error occurs:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    D:\Program Files\Oracle JDeveloper\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config>
    "D:\Program Files\Oracle JDeveloper\jdk\bin\javaw.exe" -ojvm "-Doracle.home=D:\Program Files\Oracle JDeveloper" -classpath "D:\Program Files\Oracle JDeveloper\j2ee\home\oc4j.jar;D:\Program Files\Oracle JDeveloper\jdev\lib\jdev-oc4j-embedded.jar" -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config "D:\Program Files\Oracle JDeveloper\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config\server.xml"
    [waiting for the server to complete its initialization...]
    2008-1-30 21:31:23 com.evermind.server.XMLDataSourcesConfig parseRootNode
    信息: Legacy datasource detected...attempting to convert to new syntax.
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 11953 ms.
    Target URL -- http://192.168.0.1:8988/wstest/servlet1
    08/01/30 21:31:31 Oracle Containers for J2EE 10g (10.1.3.0.0) initialized
    2008-1-30 21:31:38 org.springframework.web.context.ContextLoader initWebApplicationContext
    信息: Root WebApplicationContext: initialization started
    2008-1-30 21:31:38 org.springframework.context.support.AbstractApplicationContext prepareRefresh
    信息: Refreshing [email protected]1de: display name [Root WebApplicationContext]; startup date [Wed Jan 30 21:31:38 CST 2008]; root of context hierarchy
    2008-1-30 21:31:38 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    信息: Loading XML bean definitions from ServletContext resource [WEB-INF/applicationContext.xml]
    2008-1-30 21:31:39 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    信息: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
    2008-1-30 21:31:39 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    信息: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
    2008-1-30 21:31:39 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    信息: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml]
    2008-1-30 21:31:39 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
    信息: Bean factory for application context [[email protected]1de]: org.springframework.beans.factory.support.DefaultListableBeanFactory@2b6
    2008-1-30 21:31:40 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
    信息: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    2008-1-30 21:31:40 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
    信息: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    2008-1-30 21:31:40 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
    信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2b6: defining beans [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.servlet.ServletTransportFactory,helloWorld]; root of factory hierarchy
    2008-1-30 21:31:40 org.apache.cxf.configuration.spring.ConfigurerImpl <init>
    信息: Could not find the configuration file cxf.xml on the classpath.
    2008-1-30 21:31:41 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
    信息: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2b6: defining beans [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.servlet.ServletTransportFactory,helloWorld]; root of factory hierarchy
    2008-1-30 21:31:41 org.springframework.web.context.ContextLoader initWebApplicationContext
    严重: Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource [META-INF/cxf/cxf.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; nested exception is java.lang.ClassCastException: oracle.xml.parser.v2.DTD
    Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; nested exception is java.lang.ClassCastException: oracle.xml.parser.v2.DTD
    Caused by: java.lang.ClassCastException: oracle.xml.parser.v2.DTD
         at java.util.XMLUtils.load(XMLUtils.java:61)
         at java.util.Properties.loadFromXML(Properties.java:701)
         at org.apache.cxf.common.util.PropertiesLoaderUtils.loadAllProperties(PropertiesLoaderUtils.java:71)
         at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManagerImpl.java:209)
         at org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:97)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
         at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:756)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:721)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:384)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
         at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
         at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:50)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:649)
         at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:428)
         at com.evermind.server.Application.getHttpApplication(Application.java:512)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1975)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1958)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication(HttpSite.java:1910)
         at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:427)
         at com.evermind.server.http.HttpRequestHandler.resolveApplication(HttpRequestHandler.java:395)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:437)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    You can following the steps in http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html to reproduce the error.

    But services using direct Endpoint publishing can work, following the steps in:
    http://cwiki.apache.org/CXF20DOC/a-simple-jax-ws-service.html

  • MapViewer JDeveloper embedded OC4J installation error

    Hi,
    I downloaded all latest mapviewer.ear and latest OC4J.
    Followed MapviewerUG installation instructions
    After starting OC4J
    using the url http://localhost:8888/mapviewer/
    works well and the demos like jview also works well
    using the url http://localhost:8888/mapviewer/omserver
    however, generates the following error
    &lt;?xml version="1.0" encoding="UTF-8" ?&gt;
    &lt;oms_error&gt;Message:[oms] empty or null xml map request string. Sat Apr 02 14:40:14 IST 2005 Severity: 0 Description: at oracle.lbs.mapserver.oms.getXMLDocument(oms.java:852) at oracle.lbs.mapserver.oms.doPost(oms.java:302) at oracle.lbs.mapserver.oms.doGet(oms.java:234) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:534)&lt;/oms_error&gt;
    I also downloaded the latest JDeveloper 10G and JDeveloper extensions and follwed the instructions in the How To Document
    How To Build Dynamic Maps Using JDeveloper 10g and Oracle Application Server MapViewer
    An Oracle JDeveloper How To Document
    Justin Lokitz
    October 2004
    I have no compilation errors but I am not able to view the density map. I am getting the Internal Server Error 500 instead.
    Can anyone please guide me through this.
    Thomas Joseph

    Hi Joao
    Thanks for tip on the log file.
    I have the data loaded.
    Evrything works fine when I use Mapviewer with OC4J and try the jview demo.
    I am however not able to get the example 'How to build Dynamic Maps' running using JDeveloper using the embeded OC4J server.
    The jsp source is as follows
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/spatial/mvtaglib.tld" prefix="mapviewer"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>untitled</title>
    </head>
    <body>
    <DIV align="center">
    <P>MapViewer WebMap</P>
    <P>
    <mapviewer:init url="http://localhost:8888/mapviewer/omserver" datasource="mvdemo" id="mvHandle"/>
    </P>
    </DIV>
    <DIV align="center">
    <mapviewer:setParam antialiasing="true" basemap="density_map" centerX="-122.4" centerY="37.8" height="450" size="10" title="MyWebMap" width="600"/>
    <mapviewer:run/>
    </DIV>
    <img src="<mapviewer:getMapURL />"/>
    </body>
    </html>
    There are no comilation errors
    When I run the code I get 500 Internal Server Error.
    The Application2-oc4j-app.log generated is as follows
    05/04/05 20:04:11 Started
    05/04/05 20:05:14 Application2-ViewController-webapp: JDevOJSP: init
    05/04/05 20:05:14 Application2-ViewController-webapp: action: init
    05/04/05 20:05:16 Application2-ViewController-webapp: 9.0.4.0.0 Started
    05/04/05 20:05:28 Application2-ViewController-webapp: Servlet error
    javax.servlet.jsp.JspException: Connection refused: connect
         at oracle.lbs.mapclient.taglib.MapViewerRunTag.doStartTag(MapViewerRunTag.java:123)
         at webmap.jspService(webmap.jsp:17)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    Please put me on the track. I am not able to figure out what is going wrong.
    Regards
    Thomas Joseph

Maybe you are looking for

  • How to Run a Request Set on specific days and at specific hours

    Hi community, The question is simple, how to rin a Request Set on Specific Days and at Specific hours? Let me explain the scenario. E-Business Suite, Release 11.5.9. We have a request set under Sysadmin user. This Request set is running 24x7, during

  • LOGIC 7.1 and NI KORE

    Hi all! I'm a Logic user and I bough some time ago KORE by NI. Does anybody knows HOW to use KORE within LOGIC in multitimbral mode?? I know KORE in LOGIC has just one stereo output but I'd like the same play up to 16 instruments istantiating only on

  • Strange DMI Information on z97 mpower max ac

    I wanted to ask you why DMI Information on my motherboard is completely empty ? I mean this "To be filled by O.E.M" ?

  • Can I use the education discount to purchase a computer for my husband who is in school?

    I'd like to buy a computer for my husband who is in college. When I purchased my computer I used the education discount because I was in college at that time. I am wondering if I can use the education discount for purchasing a computer for him. I not

  • Can 10g release 2 standalone database control behaves as 9i oem

    Hi all, My question is ,in 9i we have oem,we can add multiple databases in 9i oem.At the same time we can login to multiple databases and see different sessions,OS user,memory information, storage information of different databases.Can we perform the