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
<?xml version="1.0" encoding="UTF-8" ?>
<oms_error>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)</oms_error>
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

Similar Messages

  • Error message running application from Jdeveloper/embedded OC4J

    Does anyone know what configuration I am missing to be able to run a web application from JDeveloper with the embedded OC4J.
    Here are the error messages that I am getting:
    PM oracle.j2ee.jndi.JndiMessages warningInvalidResourceReference
    WARNING: Resource reference jdbc/testdev not found. Allowing J2EEContext creation to continue anyway.
    Nov 22, 2006 1:46:46 PM oracle.j2ee.jndi.JndiMessages warningNoTypeFoundAtLocation
    WARNING: No javax.sql.DataSource found at null
    I should be able to run the application from Jdeveloper development environment without deploying to Tomcat after each change.
    There must be a jndi configuration that I need the questions is where?
    Is this configuration or lack of configuration documented some where by Oracle?
    Thanks

    Hi, user544716,
    did you solved the problem? I got exactly the same problem. In my case, my application runs well with jdeveloper 10.1.2 but when migrated to jdeveloper 10.1.3.1, the emdedded OC4J won't wrok and generated the same error as yours.
    Thanks.

  • 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

  • Starting embedded OC4J gives error XML-20108: Start of rootelement expected

    Product JDeveloper 10.1.2.0.0 (Build 1811)
    Up until recently I never got any errors when I started the embedded OC4J-server.
    Now I get the above error.
    It looks as if JDeveloper tries to access server.xml twice. The first process is updating the server.xml, and when the OC4J-server is starting up, it also tries to access server.xml, which is empty at that time (being updated by the other process).
    How can I solve this?
    lebbol

    No need to answer this thread any more, it is outdated

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

  • Error logs for Jdeveloper embedded oc4j

    Hi guys,
    I am currently using the oc4j embedded within jdeveloper (9.0.2) to develop and obviously to debug some code.
    When there is an exception in the init() method, there seems to be no record of it in the logs, the only log I found are in jdev/system/oc4j-config/log, specifically the server.log
    I have found ArrayOutOfBounds and other unchecked exceptions, but not the Servlet or IO exceptions to be logged there. Anyone have any clues how I can set it to log those as well? or does it not do that?
    Thanks lots,
    H2O

    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

  • JDeveloper 3.0 Installation Error

    After removing JDeveloper 1.0 & 2.0, I installed JDeveloper
    3.0. The installation ran without error, but when I attempted
    to execute the installed program it failed. Below, you will
    find the error message.
    I'm running MS NT 4.0 on a 350 Mhz machine with 128 Mb of RAM.
    The other software installed includes Oracle 8.0.5, Designer,
    WebDB and Procedure builder.
    Error message while attempting to run JDeveloper 3.0:
    JniPortal for E:\JDeveloper3\java\bin\javai.dll reported
    java.lang.NoClassDefFoundError
    java.lang.NoClassDefFoundError
    null

    David Reamer (guest) wrote:
    <snip>
    : I'm running MS NT 4.0 on a 350 Mhz machine with 128 Mb of RAM.
    : The other software installed includes Oracle 8.0.5, Designer,
    : WebDB and Procedure builder.
    <snip>
    If the RDBMS and the WeDB listener are actually running, you are
    probably simply short of memory. Try stopping these and then
    launching JDeveloper.
    It seems happiest when you have at least 128 MB of ram for it
    and it alone.
    null

  • JDev 10.1.3: Problem deploying a session bean to embedded OC4J

    JDeveloper 10.1.3, TopLink, OC4J, WinXP, java 1.4.2_05.
    I used TopLink to create a set of Java objects from a DB Schema, then created a simple Session Bean to read some of the objects. Everything compiles fine.
    JAVA_HOME points to the JDK (not JRE) and CLASSPATH is empty (undefined).
    When I try to Run my session bean in the jdeveloper embedded oc4j, I get this message. Thanks in advance for your help.
    Milind
    ===============
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\Tools\jdev_10_1_3\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config>
    C:\Tools\jdev_10_1_3\jdk\bin\javaw.exe -ojvm -classpath C:\Tools\jdev_10_1_3\j2ee\home\oc4j.jar;C:\Tools\jdev_10_1_3\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -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 C:\Tools\jdev_10_1_3\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    05/03/22 14:43:50 Node started with id=127765687050882
    05/03/22 14:43:52 Auto-deploying - applications/admin_ejb.jar (orion-ejb-jar.xml had been updated since the previous deployment)...
    05/03/22 14:43:52 Error initializing server: Error initializing ejb-module; Exception null
    05/03/22 14:43:53 Fatal error: server exiting
    Process exited with exit code 1.

    Error initializing ejb-module;
    Is the EJB Jar structured as
    META-INF/
    ejb-jar.xml
    Bean Class
    Home interface Class
    Remote interface Class
    Does the EJBdeploy in some other server?

  • OC4J Log Error Interpretation

    Hi, I am trying to debug an authentication issue using a system based on the information in this article: http://www.oracle.com/technology/products/jdev/howtos/1013/oc4jjaas/oc4j_jaas_login_module.htm
    IE database/datasource based authentication.
    I am getting the following error in the applications OC4J log every time a login attempt is made, no error is seen from the application, authentication simply fails.
    When I had the recommended code for fine logging in the j2ee-loggin.xml file (<logger name="oracle.j2ee.security.oc4j" level="FINE" useParentHandlers="false">
    <handler name="oc4j-handler"/>
    <handler name="console-handler"/>
    </logger>) there was no information at all recorded in the OC4J log, not until I removed the extra logger code from that file did entries such as the following begin appearing in the log file. What could be going wrong here? Why is the login process generating a null pointer error and why would the log file not be written too when the fine logging code was added to the config file? Any idea's? All I can really gain from this error message is that the DBTableOraDataSourceLoginModule is at some stage atleast being referenced or called.
    Log Message: September 3, 2007 10:59:51 AM EST
    Component Name OC4J Component ID j2ee
    Host Network Address 172.etc Message Level 1
    Module ID security User ID SYSTEM
    Execution Context ID 172.etc Execution Context Sequence 0
    Host Name usatl01 Thread ID 12
    Message Type Warning
    Message Text
    java.lang.NullPointerException
    at javax.naming.InitialContext.getURLScheme(InitialContext.java:228)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:277)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule.performDbAuthentication(DBTableOraDataSourceLoginModule.java:484)
    at oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule.login(DBTableOraDataSourceLoginModule.java:335)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
    at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
    at oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
    at oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:818)
    at oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
    at oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:814)
    at oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1143)
    at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3601)
    at com.evermind.server.http.AJPHttpServletRequest.getUserPrincipalInternal(AJPHttpServletRequest.java:261)
    at com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6332)
    at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3009)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Supplemental Text
    javax.security.auth.login.LoginException: java.lang.NullPointerException
    at javax.naming.InitialContext.getURLScheme(InitialContext.java:228)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:277)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule.performDbAuthentication(DBTableOraDataSourceLoginModule.java:484)
    at oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule.login(DBTableOraDataSourceLoginModule.java:335)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
    at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
    at oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
    at oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:818)
    at oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
    at oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:814)
    at oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1143)
    at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3601)
    at com.evermind.server.http.AJPHttpServletRequest.getUserPrincipalInternal(AJPHttpServletRequest.java:261)
    at com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6332)
    at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3009)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
    at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
    at oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
    at oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:818)
    at oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
    at oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:814)
    at oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1143)
    at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3601)
    at com.evermind.server.http.AJPHttpServletRequest.getUserPrincipalInternal(AJPHttpServletRequest.java:261)
    at com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6332)
    at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3009)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)

    Well, still struggling with this one.. although i've managed to get fine oc4j security logging enabled through the console, the error stream now follows this sequence of events at each login attempt :
    [DBTableOraDataSourceLoginModule]login called on DBTableLoginModule
    [DBTableOraDataSourceLoginModule]Calling callbackhandler ...
    [DBTableOraDataSourceLoginModule]Username returned by callback = TATKINS
    [DBTableOraDataSourceLoginModule]Username changed to case as defined by null to TATKINS
    [DBTableOraDataSourceLoginModule]Abort called on LoginModule
    java.lang.NullPointerException
    at javax.naming.InitialContext.getURLScheme(InitialContext.java:228)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:277)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule.performDbAuthentication(DBTableOraDataSourceLoginModule.java:484)
    at oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule.login(DBTableOraDataSourceLoginModule.java:335)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         etc etc...
    JAAS-OC4J: Authentication failure for user: TATKINS
    JAAS-OC4J: Membership check for group: USER failed for user: anonymous
    What i cant work out is what is causing the login module to abort and raise a null pointer exception. Could this be due to a configuration mistake in the console manager or one of the xml files prior to deployment? I just have no idea how to approach fixing this issue.
    I really would appreciate some assistance, 5+ days trying to get this working. I had this working on jdeveloper embedded oc4j, and all the tute's on standalone deployment pass off the configuration of standalone as simple compared to embedded, yet don't go into enough detail to get it working, atleast from my perspective.

  • Starting embedded-oc4j over Win 2003 Server

    Hi, i need some help with this: when i try to start the Jdeveloper embedded-oc4j over Windows 2003 Server, it shows the next in the Messages Log window:
    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.36.73\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    Process exited with exit code 128.
    I`d appreciate if anybody can tell me what i can do!
    Regards!

    Hi,
    please go to Jdev_home\j2ee\home and type java -jar oc4j.jar in a command window. This should - hopefully -provide us with additional exception traces
    Frank

  • 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                                                                                                                                                                                               

  • Error starting embedded OC4J

    I created a simple (one JSP page) web application inside JDeveloper 10.1.3 and tried to run it inside the embedded OC4J server. I get the following error. Anyone know how to resolve?
    06/08/16 18:00:51 java.lang.NoSuchFieldError: oracle.oc4j.admin.management.mbeans.StateManageable.VALID_STATES
    06/08/16 18:00:51      at com.evermind.server.ejb.EJBContainer.isValidState(EJBContainer.java:260)
    06/08/16 18:00:51      at com.evermind.server.ejb.EJBContainer.setState(EJBContainer.java:250)
    06/08/16 18:00:51      at com.evermind.server.ejb.EJBContainer.<init>(EJBContainer.java:108)
    06/08/16 18:00:51      at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:156)
    06/08/16 18:00:51      at com.evermind.server.Application.setConfig(Application.java:391)
    06/08/16 18:00:51      at com.evermind.server.Application.setConfig(Application.java:308)
    06/08/16 18:00:51      at com.evermind.server.ApplicationServer.initializeSystemApplication(ApplicationServer.java:1480)
    06/08/16 18:00:51      at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications(ApplicationServer.java:1467)
    06/08/16 18:00:51      at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:922)
    06/08/16 18:00:51      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
    06/08/16 18:00:51      at java.lang.Thread.run(Thread.java:534)

    I don't think it involves spaces in the JDeveloper installation folder. Other developers in my office have JDeveloper installed in a path with no spaces, and they see the same problem. Actually, we don't even need to create a web application to see the problem. We see it when creating a new application server connection with the standalone OC4J 10.1.3 and clicking Test Connection:
    Error while getting remote MBeanServer for url: ormi://localhost:23791/default:
    Error reading application-client descriptor: Error communicating with server: Connection refused: connect; nested exception is:
         javax.naming.CommunicationException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]

  • 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

  • JDev 10.1.3 EA: Error initializing Embedded OC4J

    I have installed the latest EA version of JDeveloper on a Linux machine along with JDK 5.0 and when I try to run anything I get:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    /home/Mark_Rees/jdevhome/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/config>
    /home/Mark_Rees/jdk1.5.0_04/bin/java -server -classpath /home/Mark_Rees/jdev_1013/j2ee/home/oc4j.jar:/home/Mark_Rees/jdev_1013/jdev/lib/jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Xrs -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 /home/Mark_Rees/jdevhome/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/config/server.xml
    [waiting for the server to complete its initialization...]
    05/12/29 13:14:24 Application: system is in state FAILED
    05/12/29 13:14:24 Error initializing server: Error initializing ejb-modules: No such file or directory; nested exception is: java.util.zip.ZipException: No such file or directory
    05/12/29 13:14:24 Fatal error: server exiting
    Process exited with exit code 1.
    Anyone got any ideas?

    Check to see if helps
    Unable to start oc4j in Jdeveloper 10.1.3 EA1
    In my case I got that error when trying to connect to MySQL database when using OC4J

  • Error in Embeded OC4J while deploying SessionBean

    I am using Jdeveloper version 9.0.5.1, since the project have brought to production at 2004, I have been using the same version.
    The workspace a number of project each contains a number of entity and session beans(EJB 2.0), lately I added a new project which contains a new session bean that references another session bean and an entity bean, when I attempt to run the application in the Jdeveloper the embedded OC4J returns the following errors messages:
    07/07/11 21:15:17 Copying default deployment descriptor from archive at D:\<Pathes>/META-INF/orion-ejb-jar.xml to deployment directory D:\TraineeCD\JDeveloper\jdev\system9.0.5.1.1605\oc4j-config\application-deployments\current-workspace-app\classes...
    07/07/11 21:15:18 Auto-deploying - file:/D:/TraineeCD/JDeveloper/jdev/mywork07/07/11 21:15:17 Copying default deployment descriptor from archive at D:\JDeveloper\jdev\mywork\<Pathes>classes/META-INF/orion-ejb-jar.xml to deployment directory D:\TraineeCD\JDeveloper\jdev\system9.0.5.1.1605\oc4j-config\application-deployments\current-workspace-app\classes...
    07/07/11 21:15:18 Auto-deploying - file:/D://JDeveloper/jdev/mywork/<Path>/classes/ (No previous deployment found)...
    07/07/11 21:15:19 Auto-deploying - file:/D://JDeveloper/jdev/mywork/<Path>/classes/ (No previous deployment found)...
    07/07/11 21:15:19 Auto-deploying - file:/D:/TraineeCD/JDeveloper/jdev/mywork/<Pathes>
    07/07/11 21:03:27 Auto-deploying - compiling and loading...
    07/07/11 21:03:53 SQL error: Io exception: The Network Adapter could not establish the connection
    07/07/11 21:04:21 Error creating table: Io exception: The Network Adapter could not establish the connection
    07/07/11 21:04:35 SQL error: Io exception: The Network Adapter could not establish the connection
    07/07/11 21:04:49 done.
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 101828 ms.
    07/07/11 21:04:53 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
    I dont know what is the meaning of this error, nor what is the cause as it never appeared before. Surprisingly the behaviour of the application seems to be behaving normally even though despite this error and when the Oc4J returns done does this mean it started successfully, this error is preventing me from deploying my application to production environment as I guess there's something abnormal going around.
    Note:When I get a fresh copy of the application without the new project which contain the session bean the OC4J starts with no errors.
    Any ideas what maybe the problem ?

    Is your new project trying to access the database?
    SQL error: Io exception: The Network Adapter could not establish the connection
    Seems to indicate that you have a problem accessing the database probably due to wrong settings of the database connection information.
    Also check your data-sources.xml file for any new entries.

Maybe you are looking for

  • Need to download 3.6 in order to use Zone Alarm, ver4 not compatiable

    I use Zone Alarm firewall. I downloaded Firefox 4 and installed it, not knowing it was not compatible. I would like reinstall 3.6, but cannot find a site to download it. All sites (that I find) have been changed to to version 4. WTROTT

  • Dynamic Select disadvantage... eventhough the records getting zero still it

    HI, This is the select statement which I am using select * from (w_access_fields-seltabname) into corresponding fields of table <t_table> where (t_where_clause) order by primary key. Plrease find the screen shot in the attachment in the 1st case the

  • Notification in other languages (GRC 10)

    Hi experts I need your help, i have to configure the msmp notifications but i need them  in spanish, because my users are using GRC AC in spanish. I tried to configure de document object in SE61 in spanish  but the system does not allow to create the

  • Pong Game Problem

    I have a problem with my pong game. IT says its missing a return statement at :71: and at someplace else. How do I fix this? Below is the source code. Note that I haven't done puck-paddle collisions yet. It isn't supposed to do those right now anyway

  • Updating a table through a manually created tabular form does not work.

    Hi Friends, I don't know why the "On submit - After computations and validations" process does not update the referenced table. May I miss something. Here is my source : select apex_item.hidden(1,eqp_id) id, apex_item.hidden(2,tcs_tcs_id) tcs, apex_i