JDeveloper 10.1.3.2 - Nullpointer in Embedded OC4J Preferences

When I want to have a look at the jazn-data file holding the users and policies I'm getting the followin error in the dialog-screen:
java.lang.NullPointerException
     at oracle.jdevimpl.xml.oc4j.jazn.PolicyPanel.onEntry(PolicyPanel.java:38)
     at oracle.ide.panels.MDDPanel.enterTraversableImpl(MDDPanel.java:926)
     at oracle.ide.panels.MDDPanel.enterTraversable(MDDPanel.java:899)
     at oracle.ide.panels.MDDPanel.mav$enterTraversable(MDDPanel.java:106)
     at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1348)
     at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1216)
     at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1210)
     at javax.swing.Timer.fireActionPerformed(Timer.java:271)
     at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
     at java.awt.Dialog$1.run(Dialog.java:515)
     at java.awt.Dialog.show(Dialog.java:536)
     at java.awt.Component.show(Component.java:1300)
     at java.awt.Component.setVisible(Component.java:1253)
     at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
     at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
     at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
     at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:276)
     at oracle.jdevimpl.xml.ModalEditor.showDialog(ModalEditor.java:112)
     at oracle.jdevimpl.xml.ModalEditor.showDialog(ModalEditor.java:88)
     at oracle.jdevimpl.runner.oc4j.EmbeddedServerAdminCommand.doit(EmbeddedServerAdminCommand.java:68)
     at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:259)
     at oracle.ide.controller.IdeAction.performAction(IdeAction.java:541)
     at oracle.ide.controller.IdeAction$1.run(IdeAction.java:772)
     at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:789)
     at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:498)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
     at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
     at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
     at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
     at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
     at java.awt.Component.processMouseEvent(Component.java:5488)
     at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
     at java.awt.Component.processEvent(Component.java:5253)
     at java.awt.Container.processEvent(Container.java:1966)
     at java.awt.Component.dispatchEventImpl(Component.java:3955)
     at java.awt.Container.dispatchEventImpl(Container.java:2024)
     at java.awt.Component.dispatchEvent(Component.java:3803)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
     at java.awt.Container.dispatchEventImpl(Container.java:2010)
     at java.awt.Window.dispatchEventImpl(Window.java:1774)
     at java.awt.Component.dispatchEvent(Component.java:3803)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
The only changes I've made in my application was unchecking the Extensions I'm not using in my application. After changing these Extensions (this is a tip regarding memory-consumption of jdeveloper) I'm getting these errors in the realm-dialog.
Regards,
Nathalie
PS: I've unchecked the following extensions:
- ADF Security 10.1.3.40.66
- BI Beans Graph 10.1.3
- Oracle Webcenter Preconfigured OC4J 10.1.3.2.0
- Portlet Creation Extension 10.1.3.40.66
- Versioning Support 10.1.3.40.66

Hi,
OC4J needs to be configured to support HTTP and HTTPS sessions. Because the embedded OC4J uses the default-web-app configuration during testing I am not so sure about configuring it for HTTPS. However, in this case I suggest you test it as a stand alone container in which case HTTPS configuration happen as described in the OC4J security guide.
"How do I make the Embedded OC4J redirect http requests for secure web content to https automatically as required in the servlet 2.4 spec ?"
I don't find this statement in my version of the Servet 2.4 spec. Can you point me to the line in the document?
If you mean transport guarantee, then this is not exactly what you say:
"The transport-guarantee element specifies that the communication between client and server should be NONE, INTEGRAL, or CONFIDENTIAL. NONE means that the application does not require any transport guarantees. A value of INTEGRAL means that the application requires that the data sent between the client and server be sent in
such a way that it can’t be changed in transit. CONFIDENTIAL means that the application requires that the data be transmitted in a fashion that prevents other entities from observing the contents of the transmission. In most cases, the presence of the INTEGRAL or CONFIDENTIAL flag will indicate that the use of SSL is required."
Servlet 2.4 spec
This however doesn't mean automated redirect to https but says that this requires SSL, which means that a http error is thrown if https isn't used
Frank

Similar Messages

  • Jdeveloper 11g TP4: Connection refused error for Embedded Oc4j

    Hi,
    I am getting following error whenever trying to deploy any application in embedded oc4j or whenever try to connect with embedded server on Resource palette.
    Error while getting remote MBeanServer for url: ormi://127.0.0.1:23891/default:
    Error reading application-client descriptor: Error communicating with server: Connection refused: connect; nested exception is:
         javax.naming.CommunicationException: Connection refused: connect [Root exception is java.net.ConnectException
    I am using Jdeveloper 11g TP 4 on windows XP.
    I have checked other links too related to above error and have checked following:
    Proper host name entry in host file
    No spaces in Jdveleoper installed directory name
    Proxy setting in Jdeveloper: excluded localhost and ip address
    Will be very thankful if anyone can help me to resolve this issue.
    Thanks in advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Don't spend to much time on this. JDev 11g is production and there will be no OC4J 11g!
    --olaf                                                                                                                                                                                               

  • 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 embedded OC4J accessing remote database

    How do I configure the embedded OC4J JNDI w/JDBC to use a local TNSNames.ora file setting to connect to a remote 9i database?

    You might want to consult the OC4J admin guide.
    http://download.oracle.com/docs/cd/B31017_01/web.1013/b28950/adminclient.htm#CHDCFBIH
    For the embedded OC4J you can access datasource settings through tools->Embedded OC4J preferences.

  • Ajax functionality works in embedded OC4J, but not on iAS 10.1.2

    Hi,
    For a customer, we made an ADF application using JDeveloper 10.1.2. Using instructions from http://www.oracle.com/technology/pub/articles/vohra-ajax.html we coded a servlet, to find a description from a code the user entered in the application, and show this on the webpage without page refresh (the application uses JSP and Struts). This works fine in the embedded oc4j server JDeveloper provides, and also works fine on the Standalone OC4J server. However, when the application is deployed to the iAS from the customer, everything works fine, except the ajax functionality, the description fields simply are not shown.
    Does anyone have a clue what could be the problem? We also runned the application on the iAS server itself, and this gives the same error (no ajax functionality).
    Thanks in advance,
    Remco

    Hi dvohra,
    Thanks for your reply. I'm afraid I overlooked something, which is the reason of the ajax functionality not working. The Servlet that made the Ajax functionality used a datasource, and the same was in the Embedded OC4J Preferences. The ADF Business Components part was changed to use the datasource declared on the iAS. The Servlet however was not...
    So, all works now.

  • Applying patch to embedded OC4J

    Hi,
    On the 18th of October, Oracle released a patch numbered "5608209" for OC4J. One of the bugs it fixes is "5604102", which renders the WebWork framework almost useless on 10.1.3.
    Now, my question is, is there an equivalent patch that can be installed on JDeveloper to fix that issue in the embedded OC4J that comes along with JDeveloper 10.1.3?
    Thanks

    Hi Tarek,
    I was in the same situation as you are. I asked for help on MetaLink and they replied with a few command prompt lines, which worked. However, I needed to have a generic way of installing any patch to any OC4J installation (JDeveloper embedded, standalone or OracleAS), so I wrote a batch script to do the work.
    I've changed it slightly since the patch you mentioned has slightly different contents to the ones I've had previously.
    Save the text below as orapatch.bat, then run it from the command prompt (where you saved the batch file) with the command: orapatch <patch path> <oc4j path> <backup dir>
    Where <patch path> is the absolute or relative path to the unzipped patch folder (something like C:\Patches\5608209),
    <oc4j path> is the absolute or relative path to the OC4J installation (e.g. "C:\Program Files\JDeveloper")
    and <backup dir> is the name of the directory you want to store the backup files (e.g. "JDeveloper Backup")
    @echo off
    :: Installer for Oracle Patches
    :: Parameters:
    :: <patch path> The absolute or relative path to the patch folder
    :: <oc4j path> The absolute or relative path to an oc4j instance
    :: <backup dir> The directory name to store the backups
    :: e.g. orapatch C:\1234567 "C:\Program Files\JDeveloper" JDeveloper
    :: or D:\7654321 D:\oc4j "Standalone OC4J"
    :initial
    if "%~3"=="" goto useerror
    set PATCH_DIR=%~f1
    set OC4J_DIR=%~f2
    set BACKUP_DIR=%~3
    if not exist "%PATCH_DIR%" goto patherror2
    if not exist "%PATCH_DIR%\files\j2ee\home\" goto patherror2
    if not exist "%OC4J_DIR%" goto patherror
    if not exist "%OC4J_DIR%\j2ee\home\lib" goto patherror
    if not exist "%PATCH_DIR%\backup" md "%PATCH_DIR%\backup"
    if not exist "%PATCH_DIR%\backup\%BACKUP_DIR%" md "%PATCH_DIR%\backup\%BACKUP_DIR%"
    if not exist "%PATCH_DIR%\temp" md "%PATCH_DIR%\temp"
    set TEMP_DIR=%PATCH_DIR%\temp
    if not exist "%PATCH_DIR%\files\j2ee\home\lib\oc4j-internal.jar" goto client
    echo Patching oc4j-internal.jar
    copy "%OC4J_DIR%\j2ee\home\lib\oc4j-internal.jar" "%TEMP_DIR%\oc4j-internal.jar" > NUL
    jar -ufv0 "%TEMP_DIR%\oc4j-internal.jar" -C "%PATCH_DIR%\files\j2ee\home\lib\oc4j-internal.jar" .
    copy "%OC4J_DIR%\j2ee\home\lib\oc4j-internal.jar" "%PATCH_DIR%\backup\%BACKUP_DIR%\oc4j-internal.jar.original" > NUL
    copy "%TEMP_DIR%\oc4j-internal.jar" "%OC4J_DIR%\j2ee\home\lib" > NUL
    :client
    if not exist "%PATCH_DIR%\files\j2ee\home\oc4jclient.jar" goto finish
    echo.
    echo Patching oc4jclient.jar
    copy "%OC4J_DIR%\j2ee\home\oc4jclient.jar" "%TEMP_DIR%\oc4jclient.jar" > NUL
    jar -ufv0 "%TEMP_DIR%\oc4jclient.jar" -C "%PATCH_DIR%\files\j2ee\home\oc4jclient.jar" .
    copy "%OC4J_DIR%\j2ee\home\oc4jclient.jar" "%PATCH_DIR%\backup\%BACKUP_DIR%\oc4jclient.jar.original" > NUL
    copy "%TEMP_DIR%\oc4jclient.jar" "%OC4J_DIR%\j2ee\home" > NUL
    goto finish
    :finish
    echo.
    echo OC4J installation at %OC4J_DIR% patched.
    echo Backed up files stored in %PATCH_DIR%\backup\%BACKUP_DIR%.
    rd /S /Q "%TEMP_DIR%"
    set PATCH_DIR=
    set OC4J_DIR=
    set BACKUP_DIR=
    set TEMP_DIR=
    goto done
    :useerror
    echo Usage: orapatch ^<patch path^> ^<oc4j path^> ^<backup dir^>
    echo.
    echo e.g. orapatch C:\Patches\7654321 C:\JDeveloper JDeveloper
    goto done
    :patherror
    echo Specified path (%OC4J_DIR%) is not an OC4J installation.
    goto done
    :patherror2
    echo Specified path (%PATCH_DIR%) is not an Oracle patch.
    goto done
    :doneMessage was edited by:
    DominionSpy
    Corrected script bugs (%PATCH_DIR_FULL% -> %PATCH_DIR% and rm -> rd)

  • Hi! I am new to Jdeveloper.Having problem while deploying on embeded OC4J

    hi everybody
    I am new to JDeveloper.I am using OracleJDeveloper 10.2.3 version.I am facing problem while deploying any application on embeded OC4J server.I have tried a lot after searching solution on this site,but all of no use.Actually i am not able to established connection with OC4J.Whenever i am testing the connection it`s giving message Connection Failed message.Please provide me the exact solution.I am in need of this so reply as soon as possible.
    Thanks In Advance
    Rohit Tiwary

    Hi Rohit,
    You dont have to create a connection to deploy in embedded oc4j. You can simply right click on the jsf page and run.
    HTH.
    Regards,
    Arun

  • Problem with  Jdeveloper Embedded OC4J  XML parsing

    Hi all,
    I am having a problem getting jdeveloper to work well. If I use jdeveloper to build the WAR file for my app and I deploy to Tomcat, the app runs fine with no error.
    However, if I try to run my app within the jdeveloper, I get this error -
    08/06/10 19:11:10 com.ibatis.dao.client.DaoException: Error while configuring DaoManager. Cause: java.lang.RuntimeException: XML Parser Error. Cause: oracle.xml.parser.v2.XMLDOMException: invalid character [ in name
    Caused by: java.lang.RuntimeException: XML Parser Error. Cause: oracle.xml.parser.v2.XMLDOMException: invalid character [ in name
    08/06/10 19:11:10 at com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.buildDaoManager(XmlDaoManagerBuilder.java:112)
    08/06/10 19:11:10 at com.ibatis.dao.client.DaoManagerBuilder.buildDaoManager(DaoManagerBuilder.java:47)
    I have tried to turn off XML parsing within Jdeveloper but no luck. I don't understand why jdeveloper will be trying to implicitly parse the XML doc, and wont even do it well.
    Is there a way I can turn off Embedded OC4J XML parsing ? and let it just use the parser in the application ? I mean Tomcat works fine with this application.
    Please help !

    I think maybe you use wrong adf lib when deploying your project to the OC4J.
    You can update your oc4j in the jdev.[JDEV->Tools->ADF Runtime Installer-> Standalone OC4J].
    Good luck
    Hart

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

  • Mail Session configuration with embedded oc4j in jdeveloper 10g 10.1.3.1

    Hello all:
    I'd tried to use javamail in a j2ee application. I´d defined an resource reference with the EJB Module Editor but when i run the application it throws:
    java.lang.InstantiationException: Error initializing ejb-modules: No Mail Session configured for the resource MailSession
    How can i configure a Mail Session with the embedded oc4j of jdeveloper 10g 10.1.3.1?
    Thanks a lot.

    Hi,
    You need to add following configuration in $ORACLE_HOME/j2ee/home/config/application.xml & restart your OC4J :-
    <mail-session location="EMailSession" smtp-host="mail.cdsc.com">       <property name="mail.transport.protocol" value="smtp"/>       <property name="mail.debug" value="true"/>    </mail-session>Regards,
    Sandeep

  • How to reload embedded oc4j in JDeveloper without terminating it?

    To the experienced:
    Using JDeveloper (10.1.3.4), when I need to see the effect of my changes in the application code (in the backing beans), the only way I know is to terminate the embedded oc4j by clicking the red square button (or Run > Terminate > Embedded OC4J Server), and then run a .jspx page to restart the oc4j. All these steps are just for the changes in the code to be loaded into the oc4j.
    That is a bit too cumbersome because such reloading is frequent. To test the changed application I need to use an outside page that sends a request to that .jspx page, with some information that the .jspx page needs. That won't work because the oc4j has been terminated. So I have to Run that .jspx page inside JDeveloper just to start the oc4j, knowing that this will spill error in the browser window because the information from the outside page is missing.
    Is there a way to have the application in the running oc4j updated without terminating and restarting the oc4j?
    Thanks for helping!
    Newman

    It kind of depends on the type of changes you did - some changes can be picked up automatically just by saving the new file and reloading in the browser.
    In any case you don't need to first stop the server and then run, you can just hit the run button again and JDeveloper will re-deploy your new page.
    You can have the HTML file be part of your project and run it from inside JDeveloper - this will also re-deploy your new JSPX.

  • Problem running embeded OC4J from JDeveloper 11g TP 3

    I've just downloaded JDeveloper 11g Technical Preview 3. Unzipped it and ran.
    IDE runs ok, but when I try to run Web project on embedded OC4J, I got exceptions and the server never starts (exception text included on the bottom).
    Here is the way to reproduce the error:
    1. Create new Web Project with New Gallery wizard:
    a. New Gallery->general->projects->web project
    b. on Web Application page (step 3 of 7) choose Servlet 2.5/JSP 21.
    c. on Page Flow technology page (4 of 7) choose none
    d. don't include available libraries (5 of 7)
    e. on Web Project Profile (6 of 7) check Add JSP Page
    f. finish
    e. choose jsp name (after clicking finish a dialog pops up)
    2. Run the page
    a. select the page in Application Navigator
    b. right click on it and choose Run option
    In my case I got the following exception:
    [Starting Embedded OC4J Server using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\Documents and Settings\kazelot\Application data\JDeveloper\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\config>
    D:\work\jdev1111\jdk\bin\javaw.exe -client -classpath D:\work\jdev1111\j2ee\home\oc4j.jar;D:\work\jdev1111\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=512m -Ddisable.checkForUpdate=true -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false "-Djava.security.policy=C:\Documents and Settings\kazelot\Application data\JDeveloper\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\config\java2.policy" oracle.oc4j.loader.boot.BootStrap -config "C:\Documents and Settings\kazelot\Application data\JDeveloper\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\config\server.xml"
    [waiting for the server to complete its initialization...]
    2008-01-30 13:19:09 oracle.j2ee.xml.XMLMessages warningException
    WARNING: Exception Encountered
    2008-01-30 13:19:10 oracle.oc4j.util.SystemLog log
    SEVERE: Server start failed processing configuration
    java.security.AccessControlException: access denied ( CredentialAccessPermission credstoressp.credstore.default.systemuser read)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         at java.security.AccessController.checkPermission(AccessController.java:427)
         at oracle.security.jps.util.JpsAuth$AuthorizationMechanism$3.checkPermission(JpsAuth.java:256)
         at oracle.security.jps.util.JpsAuth$Diagnostic.checkPermission(JpsAuth.java:180)
         at oracle.security.jps.util.JpsAuth$AuthorizationMechanism$6.checkPermission(JpsAuth.java:280)
         at oracle.security.jps.util.JpsAuth.checkPermission(JpsAuth.java:315)
         at oracle.security.jps.util.JpsAuth.checkPermission(JpsAuth.java:338)
         at oracle.security.jps.internal.credstore.util.CsfUtil.checkPermission(CsfUtil.java:527)
         at oracle.security.jps.internal.credstore.ssp.SspCredentialStore.getCredential(SspCredentialStore.java:412)
         at oracle.security.jps.fmw.util.JpsFmwUtil.findSystemUser(JpsFmwUtil.java:218)
         at oracle.security.jps.fmw.JpsUserManager.init(JpsUserManager.java:235)
         at oracle.security.jps.fmw.JpsUserManager.<init>(JpsUserManager.java:247)
         at oracle.security.jps.fmw.JpsUserManagerFactory$JpsUserManagerFactoryI.create(JpsUserManagerFactory.java:252)
         at com.evermind.server.deployment.UserManagerConfig$JAZN.construct(UserManagerConfig.java:635)
         at com.evermind.server.deployment.UserManagerConfig.delegatee(UserManagerConfig.java:253)
         at com.evermind.security.IndirectUserManager.getAdminUser(IndirectUserManager.java:126)
         at com.evermind.security.IndirectUserManager.getAdminUser(IndirectUserManager.java:126)
         at com.evermind.server.XMLApplicationServerConfig.setPassword(XMLApplicationServerConfig.java:3157)
         at com.evermind.server.XMLApplicationServerConfig.<init>(XMLApplicationServerConfig.java:244)
         at com.evermind.server.ApplicationServer.createConfig(ApplicationServer.java:648)
         at oracle.oc4j.server.ServerFactory$Worker.prepareConfig(ApplicationServerFactory.java:201)
         at oracle.oc4j.server.ServerFactory$Worker.start(ApplicationServerFactory.java:220)
         at oracle.oc4j.server.ServerFactory$Worker.run(ApplicationServerFactory.java:235)
         at java.lang.Thread.run(Thread.java:595)
    2008-01-30 13:19:10 oracle.oc4j.util.SystemLog logNoStack
    SEVERE: Server exiting: ApplicationServer entered state EXITING
    Process exited with exit code 1.
    Is it something with my configuration. My environment is:
    ADF Business Components     11.1.1.47.96
    Java(TM) Platform     1.5.0_11
    Oracle IDE     11.1.1.0.22.47.96
    SOA Composite Editor     11.1.1.0.0 (Build 071219.1424)
    Versioning Support     11.1.1.0.22.47.96
    Thanks for any suggestions,
    kazelot

    change the file to just (DIRTY way, but works)
    grant {
         permission java.security.AllPermission;
    };Really dirty as these permissions are not Java EE compliant.
    --olaf                                                                                                                                                                                                                                                                                                                                                                           

  • Embedded OC4J (Jdeveloper 10.1.3.2) HTTP switch HTTPS

    I need to debug some web application that switches between HTTP and HTTPS and back again. I have done all the required configuarion of the embedded OC4J to support this namely:
    1. create self signed certificate
    2. created a second web-site (secure-web-site.xml) that listens for https connections on another port e.g. 4443
    3. added relevant <ssl-config> entry to secure-web-site.xml
    4. Marked the relevant <web-app> element as shared in the secure-web-site.xml and default-web-site.xml files
    I now start the embedded OC4J in jdeveloper and all is well, https and http work fine. However a different session is created for each of the web-sites the secure and the default (i.e one for the http and one for the https). I understand why since the browser treats http://www.mydomain.com:8988 and https://www.mydomain.com:4443 as separate web sites.
    One Solution
    ~~~~~~~~~~
    If my understanding is correct if I use the standard ports 80 and 443 then the browser would treat these as the same web site and only one cookie jsessionid cookie gets created and so only one session
    2nd Solution
    ~~~~~~~~~~
    If I use non-default ports like 8888 and 4443 then I can set the cookie domain in the orion-web.xml file <session-tracking cookie-domain=".mydomain.com" /> and this ensures one jsessionid cookie is shared for the whole domain and so again only one session
    Unfortunately I cannot implement either solution in the embedded OC4J since for solution one no matter what I do I cannot get the embedded OC4J to listen on port 80. It always finds a conflict and chooses a different port like 1024 even though no other process is using port 80
    The second solution does not work since the orion-web.xml file gets overwritten everytime I start the embedded OC4J and so I lose any updates I make.
    Does anybody have any ideas how to overcome these problems? I know I could use a standalone container but then I will lose all the convenience of testing within Jdeveloper.
    Many thanks.

    Hi,
    I'll file an ER to allow developers in JDeveloper to test http and https. What I usually do - as a work around - is to open files that are change on each start of the embedded OC4J in TextPad. TextPad asks if an opened file should be reloaded when it has been changed on the filesystem. I then say "no" and safe the opened file gain, overriding the JDeveloper changes.
    Its not perfect, but much better than re-editing all the files.
    Frank

  • 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

  • Embeded OC4J server within JDeveloper does not pick latest JAR files.

    Hi,
    Currently OC4J seems to be using an older version of JAXB1.0. Hence I created a shared library in my standalone OC4J server and imported the shared library while deploying my applicatoin in the ClassLoader task.I am trying to replicate the same in
    my embeded OC4J server within JDeveloper.
    I followed as indicated in readme.txt file in the \j2ee\home\shared-lib\ folder.
    1) I created a folder called "jaxb" within /j2ee/home/shared-lib/. I then created a folder with the name "2.0" indicating the version number of the API.
    2) I then added the relevant jaxb JARS to the jaxb/2.0 folder.
    3) In the server.xml file available under /j2ee/home/config/ , I added the following entries.
    <shared-library name="jaxb" version="2.0">
              <code-source path="jaxb-api.jar"/>
              <code-source path="activation.jar"/>
              <code-source path="jaxb1-impl.jar"/>
              <code-source path="jaxb-impl.jar"/>
              <code-source path="jsr173_1.0_api.jar"/>
              <code-source path="jaxb-xjc.jar"/>
         </shared-library>
    I am still facing the issue where my embedded OC4J server is picking up the jaxb version 1.0.
    What are the steps that needs to be taken to ensure that the embeded OC4J
    takes in the jaxb2.0 version.

    Refer
    Re: SUN Jaxb2.0 incompatible with OC4J included in JDEV/OC4J ??

Maybe you are looking for

  • CS6 installation error summary- Exit code 6

    When I attempt to install the CS6 Beta, I get the below error message: I went to the forum and also verified the temp. file in the /appdata/roaming/microsoft/ file. I currently have CS5 master collection installed. Regards, Mark

  • Creating a Drawing toolbar?

    Hi, I want to know what should I use to make a drawing toolbar I used the JToggleButton at first but can't get a way to select one at a time. I have 10 Items Line, Rectangles, and many other shapes so what should I use to create a toolbar on which On

  • How is performance on Macbook Pro 15" 2ghz 128mb video ram?

    Is anyone running aperture with the 128mb video ram? Trying to decide if the approx $500 difference between models is really worth it for the ram. I know there's a little more hd space and a tick faster cpu speed but I'm mainly concerned with the ram

  • Could not read jazn-data config file

    I am using JDev 10.1.2 When deploying my app I am receiving "oracle.oc4j.admin.internal.DeployerException: Cound not read jazn-data config file..." when deploying my app of OC4J 10.1.2. When I deploy directly to an EAR file and open the EAR file I se

  • SAPLICENSE expired and database connectivity failed.

    hello, I am working in a system on solaris10 and Oracle 10.2.0.2 on CRM4.0, whose license is expired. due to which I am not able to logon to the system and showing that SAPLICENSE (Release 640) ERROR ***     ERROR:   Connect to database failed     DE