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

Similar Messages

  • Start up error: XML-20108: (Fatal Error) Start of root element expected.

    Hi,
    Before I got this error, I manually de-install / install Oracle Spatial and followed metalink Note 179472.1 and 220481.1.
    The reason why I did these is when I run some spation function, always got error message like: ORA-06553:PLS-907: cannot load library unit MSDYS.SDO-3GL (referenced by MDSYS.SDO-FILTER)
    I checked that Spatial is invalid.
    I've struggled with this error for one day. My application is a ADF Faces combine with MapViewer application, and I deployed it to my standalone OC4J (workstation). It works fine.
    Unfortunatelly, I can not deploy app to OracleAS(RHEL 4.0 server). so I copied the .ear file to server, and deploy it via IAS console.
    There is no error for deployment, but when I run the application. The page no response at all(like blocked). I checked the log files under $ORACLE_HOME/opmn/logs and the error is : <Line1, Column1>:XML-20108: (Fatal Error) Start of root element expected.
    The following is my web.xml file:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>/index.jsp</welcome-file>
    </welcome-file-list>
    <jsp-config/>
    </web-app>
    Any helps / ideas?
    I appreciate you.
    Thanks
    Joyce

    Check your xml data. You can use setData() with file path parameter or InputStream parameter. See this reference link http://docs.oracle.com/cd/E15586_01/fusionapps.1111/e20838/javaapis.htm#BIPDV005

  • 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

  • Embeded video gives error whilst navigating

    I get the following error in Safari : Error #2044: Unhandled
    IOErrorEvent:. text=Error #2036: Load Never Completed.
    when I click off the page that has the video embedded on it.
    never seen that?

    Could also be due to a) an image that is just simply too large for your sequence and has thrown the error (happens a lot, usually with still images, and jpgs are the worst) or b) you've inadvertently got a blank spot on your timeline with no video or images on it... if it hits a blank spot, it'll always fail.

  • 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

  • XML validation errors in embedded OC4J jazn.xml

    hi
    If I open the jazn.xml of the embedded OC4J in JDeveloper 10.1.3.3.0 and select "Validate XML" from the context-menu on that file, I get these messages in the "XML Validation Errors - Log" :
    D:\oracle\jdevstudio10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\jazn.xml
        Error(10,28): <Line 10, Column 28>: XML-24535: (Error) Attribute 'schema-major-version' not expected.
        Error(10,28): <Line 10, Column 28>: XML-24535: (Error) Attribute 'schema-minor-version' not expected.
        Error(10,28): <Line 10, Column 28>: XML-24536: (Error) Missing Attribute 'filepath'
        Error(10,28): <Line 10, Column 28>: XML-24536: (Error) Missing Attribute 'OC4J_INSTANCE_ID'Strange, because I'm not aware of any changes I've made to this file.
    Could someone (from Oracle) please confirm that this is "intended", so I can exclude it as possible cause for the "security configuration issue" that I'm having.
    many thanks
    Jan Vervecken

    Thanks for your reply Frank.
    If "the content seems to be correct" then the XML schema jazn-10_0.xsd might not be what it should be.
    For the attributes "filepath" and "OC4J_INSTANCE_ID" it says they are "required", just like the validation by JDeveloper says, but they are not in the documentation.
    For the attributes "schema-major-version" and "schema-minor-version" the documentation says:
    "This attribute is not defined directly in the XSD for jazn.xml. It is according to the attributeGroup specification in the top-level OC4J XSD."
    Although there is no exact reference in that documentation, and also not in jazn-10_0.xsd, that XSD could be oc4j-10_0.xsd because it defines this:
        <xsd:attributeGroup name="oc4j-schemaVersionAttributeType">
            <xsd:annotation>
                <xsd:documentation>This type defines two different attributes which are intended to be used in the
                    root element of a schema document to define version 10.0 of the schema document.
                </xsd:documentation>
            </xsd:annotation>
            <xsd:attribute name="schema-major-version" type="xsd:integer" fixed="10"/>
            <xsd:attribute name="schema-minor-version" type="xsd:integer" default="0"/>
        </xsd:attributeGroup>I'm not sure if it is the validation by JDeveloper that went wrong here, or the XML schema jazn-10_0.xsd that is incomplete about these "schema version" attributes.
    Anyway, it seems OK to exclude it as possible cause for the "security configuration issue" that I'm having.
    regards
    Jan

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

  • 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

  • Process exited with exit code 128 using embedded OC4J (jdevsetudio1013)

    I've just downloaded Oracle JDeveloper (10.1.3) - Production JAN 2006 version (Studio Edition), installied and configure as the install guide, downladed SU5 (Studio Edition version 10.1.3.0.4 Build JDEVADF_10.1.3_NT_060125.0900.3673) and JUnit extensions and SR. When I tried to run Oracle ADF SRDEMO Application, I´ve just got this error message:
    [EJB 3.0]: Assigning default-data-source=jdbc/SRDemoDS, specified in projects EJB 3.0 properties
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    E:\mywork\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config>
    "C:\Program Files\Java\jdk1.5.0_08\bin\javaw.exe" -ojvm -classpath E:\jdevstudio1013\j2ee\home\oc4j.jar;E:\jdevstudio1013\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 E:\mywork\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'm using a Microsoft Windows Server 2003 Standard Edition Service Pack 1 inside a VMware workstation (version 5.5.2.build-29772) with 1.4GB of RAM with an Oracle 10gR2 for windows (10.2.0.1.0)
    I don´t know if it is a configuration problem or that Windows Server 2003 SP1 is not supported or any other problem.
    Any help you can give on this would be much appreciated.
    Thanks,
    Orlando

    thanks for your idea...but in my environment there no JAVA_OPTIONS defined. This is a copy of my console after running set:
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    ANT_HOME=C:\apache-ant-1.6.5
    APPDATA=C:\Documents and Settings\Administrator\Application Data
    APR_ICONV_PATH=C:\Program Files\Subversion\iconv
    CATALINA_HOME=C:\ASF\Tomcat 5.5
    ClusterLog=C:\WINDOWS\Cluster\cluster.log
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=OGJEE
    ComSpec=C:\WINDOWS\system32\cmd.exe
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\Administrator
    JAVA_HOME=C:\Program Files\Java\jdk1.5.0_08
    JBOSS_HOME=C:\jboss-4.0.4.GA-Patch1
    LOGONSERVER=\\OGJEE
    M2_HOME=C:\ASF\maven-2.0.4
    M2_REPO=C:\Documents and Settings\Administrator\.m2\repository
    MAVEN_OPTS=-XX:MaxPermSize=128m -Xmx512m
    NUMBER_OF_PROCESSORS=1
    OS=Windows_NT
    Path=E:\oracle\product\10.2.0\db_1\bin;C:\Program Files\Support Tools\;c:\Progra
    m Files\Windows Resource Kits\Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\S
    ystem32\Wbem;;C:\Program Files\Subversion\bin;C:\Program Files\Java\jdk1.5.0_08\
    bin;C:\ASF\maven-2.0.4\bin;C:\Program Files\MySQL\MySQLServer5.0\bin;C:\apache-a
    nt-1.6.5\bin;;C:\Program Files\STI\bin\pc-win95
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PERL5LIB=E:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x86;E:\oracle\prod
    uct\10.2.0\db_1\perl\5.8.3\lib;E:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWi
    n32-x86;E:\oracle\product\10.2.0\db_1\perl\site\5.8.3;E:\oracle\product\10.2.0\d
    b_1\perl\site\5.8.3\lib;E:\oracle\product\10.2.0\db_1\sysman\admin\scripts;
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 8, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=0d08
    ProgramFiles=C:\Program Files
    PROMPT=$P$G
    SESSIONNAME=Console
    SystemDrive=C:
    SystemRoot=C:\WINDOWS
    TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    USERDOMAIN=OGJEE
    USERNAME=localadmin
    USERPROFILE=C:\Documents and Settings\Administrator
    windir=C:\WINDOWS
    tthanks anyway

  • JDev 11g TP4: App running in embedded OC4J fails in Integrated OC4J

    I have a simple application containing a bunch of JSP pages. When I run it on the embedded OC4J everything works fine.
    When I try to run it on the Integrated OC4J I get the following "missing class error":
    Binding web application(s) to site default-web-site begins...
    Binding FloorLocator2-Loc_Model-webapp web-module for application BlazeProj2 to site default-web-site under context root FloorLocator2-Loc_Model-context-root
    Operation failed with error:
    oracle.oc4j.admin.jmx.shared.exceptions.InternalException: The application named, FloorLocator2-Loc_Model-webapp ( web module named,
    ) failed to deploy. The application named, BlazeProj2, could not start due to an error.
         Missing class: com.googlecode.gmaps4jsf.component.map.Map
         Dependent class: com.sun.faces.config.ManagedBeanFactoryImpl
         Loader: oracle.jsf:1.2
         Code-Source: /C:/jdevtp4/lib/java/shared/oracle.jsf/1.2/jsf-ri.jar
         Configuration: <code-source> (ignore manifest Class-Path) in /C:/jdevinstance/system11.1.1.0.22.49.49/o.j2ee/embedded-oc4j/config/server.xml
    The missing class is not available from any code-source or loader in the system.Reason: {4}
         at oracle.oc4j.admin.jmx.shared.deploy.NotificationUserData.<init>(NotificationUserData.java:107)
         at oracle.oc4j.admin.internal.Notifier.reportError(Notifier.java:430)
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:133)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:82)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.oc4j.admin.internal.DeployerException: The application named, FloorLocator2-Loc_Model-webapp ( web module named,
    ) failed to deploy. The application named, BlazeProj2, could not start due to an error.
         Missing class: com.googlecode.gmaps4jsf.component.map.Map
         Dependent class: com.sun.faces.config.ManagedBeanFactoryImpl
         Loader: oracle.jsf:1.2
         Code-Source: /C:/jdevtp4/lib/java/shared/oracle.jsf/1.2/jsf-ri.jar
         Configuration: <code-source> (ignore manifest Class-Path) in /C:/jdevinstance/system11.1.1.0.22.49.49/o.j2ee/embedded-oc4j/config/server.xml
    The missing class is not available from any code-source or loader in the system.Reason: {4}
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:136)
         ... 5 more
    Caused by: java.lang.InstantiationException: The application named, BlazeProj2, could not start due to an error.
         Missing class: com.googlecode.gmaps4jsf.component.map.Map
         Dependent class: com.sun.faces.config.ManagedBeanFactoryImpl
         Loader: oracle.jsf:1.2
         Code-Source: /C:/jdevtp4/lib/java/shared/oracle.jsf/1.2/jsf-ri.jar
         Configuration: <code-source> (ignore manifest Class-Path) in /C:/jdevinstance/system11.1.1.0.22.49.49/o.j2ee/embedded-oc4j/config/server.xml
    The missing class is not available from any code-source or loader in the system.
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:690)
         at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:493)
         at com.evermind.server.Application.getHttpApplication(Application.java:769)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.doCreateHttpApplicationFromReference(HttpSite.java:2315)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2295)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:2196)
         at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1826)
         at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:254)
         at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:141)
         at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:96)
         at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:589)
         at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:216)
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:99)
         ... 5 more
    Caused by: oracle.classloader.util.AnnotatedNoClassDefFoundError:
         Missing class: com.googlecode.gmaps4jsf.component.map.Map
         Dependent class: com.sun.faces.config.ManagedBeanFactoryImpl
         Loader: oracle.jsf:1.2
         Code-Source: /C:/jdevtp4/lib/java/shared/oracle.jsf/1.2/jsf-ri.jar
         Configuration: <code-source> (ignore manifest Class-Path) in /C:/jdevinstance/system11.1.1.0.22.49.49/o.j2ee/embedded-oc4j/config/server.xml
    The missing class is not available from any code-source or loader in the system.
         at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2179)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1716)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1672)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1657)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.getDeclaredFields0(Native Method)
         at java.lang.Class.privateGetDeclaredFields(Class.java:2259)
         at java.lang.Class.getDeclaredFields(Class.java:1715)
         at com.sun.faces.config.ManagedBeanFactoryImpl.scanForAnnotations(ManagedBeanFactoryImpl.java:1133)
         at com.sun.faces.config.ManagedBeanFactoryImpl.<init>(ManagedBeanFactoryImpl.java:156)
         at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:895)
         at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:487)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:377)
         at com.evermind.server.http.HttpApplication.internalInitDynamic(HttpApplication.java:1394)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1296)
         at com.evermind.server.http.HttpApplication.init(HttpApplication.java:860)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:686)
         ... 17 more
    #### Deployment incomplete. #### Dec 12, 2008 11:57:07 AM
    oracle.jdeveloper.deploy.DeployException: Deployment Failed
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.distributeApplicationToTargets(Jsr88RemoteDeployer.java:598)
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.deployApp(Jsr88RemoteDeployer.java:1010)
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.deployImpl(Jsr88RemoteDeployer.java:174)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdeveloper.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:417)
         at oracle.jdeveloper.deploy.DeploymentManager.deploy(DeploymentManager.java:202)
         at oracle.jdevimpl.runner.adrs.AdrsStarter$3$1.run(AdrsStarter.java:1116)
    #### Cannot run application BlazeProj2 due to error deploying to DefaultServer.
    [Application BlazeProj2 stopped and undeployed from Server Instance DefaultServer]
    Process exited.
    The problem is that I want to run the application on the Integrated server because I want to add some SOA components on it.
    Is there any way to get rid of this "missing class" error?
    Thank you in advance for the help.

    Hi, check if you have an existing deployment profile for your project and make sure the google maps jar is been added to the profile. When you use integrated the application gets deployed to the server so it takes all of its libraries and gets them deployed into the server. With embedded everything gets loaded from your application directory.
    If you don't have a deployment profile, create one and manually add the gMaps library and see if this time the integrated server uses your new deployment profile.
    Cheers,
    Juan C.

  • Using embedded oc4j in jdeveloper 10.1.3. EA failed

    Hallo
    i have the following problem, and hope somebody can help me.
    i installed the jdev 10.1.3.EA 3412 on notebook with suse linux 9.2 and made a simple hallo world jsp.
    compilation was ok with no errors.
    when i run the jsp in jdev i get the following message:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    /home/wilhetho/jdevhome/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/config>
    /usr/share/jdk1.5.0_06/bin/java -server -classpath /opt/oracle/jdev/j2ee/home/oc4j.jar:/opt/oracle/jdev/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/wilhetho/jdevhome/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/config/server.xml
    [waiting for the server to complete its initialization...]
    24.01.2006 19:15:34 com.evermind.server.XMLDataSourcesConfig parseRootNode
    INFO: Legacy datasource detected...attempting to convert to new syntax.
    06/01/24 19:15:43 java.net.NoRouteToHostException: No route to host
    06/01/24 19:15:43      at java.net.PlainSocketImpl.socketConnect(Native Method)
    06/01/24 19:15:43      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    06/01/24 19:15:43      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    06/01/24 19:15:43      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    06/01/24 19:15:43      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    06/01/24 19:15:43      at java.net.Socket.connect(Socket.java:507)
    06/01/24 19:15:43      at java.net.Socket.connect(Socket.java:457)
    06/01/24 19:15:43      at java.net.Socket.<init>(Socket.java:365)
    06/01/24 19:15:43      at java.net.Socket.<init>(Socket.java:207)
    06/01/24 19:15:43      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.sendMessage(Oc4jNotifier.java:98)
    06/01/24 19:15:43      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.postInitApplicationServer(Oc4jNotifier.java:55)
    06/01/24 19:15:43      at com.evermind.server.ApplicationServer.serverExtensionPostInit(ApplicationServer.java:1041)
    06/01/24 19:15:43      at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:927)
    06/01/24 19:15:43      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:98)
    06/01/24 19:15:43      at java.lang.Thread.run(Thread.java:595)
    06/01/24 19:15:43 Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview initialized
    After this, the oc4j container is up an running, because i can reach it over the adress localhost:8988.
    So now my two questions:
    -> there is no browser starting (i tried different entries under tools-preferences-webproxy). what can be the reason?
    -> where does the error message no route to host come from?
    thank you

    Hi, here Re: java.net.ConnectException: Connection timed out: connect i post my workaround.
    bye
    Antonio.

  • 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                                                                                                                                                                                                                                                                                                                                                                           

  • 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

  • ITS.ear Wireless -- how to remove appl from embedded OC4J config JDev b4157

    The embedded container configuration currently includes ITS.ear; I'd like to remove this from the default applications started by embedded container.
    The JDev (10.1.3.41.57) Tools .. Embedded OC4J Server Preferences .. Applications list includes ITS. The input fields and buttons to change or Delete this web application are greyed out. Removing the <application> entry from the server.xml file in c:/JDev_4157/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/ only removes ITS application temporarily -- it reappeared.
    I've not been able to locate a configuration that causes this to be added to the default datatags and current-workspace-app applications.
    Thanks.

    Thanks for reading and checking your installation.
    Don't believe it's automatic in the standard install; I only noticed it recently but I have no idea how it got activated or how to unactivate it. (You can find the EAR file in <your-JDEV-root>/wirelss/ITS.ear.) Is there a binary JDev config file storing a preference to include this in the IDE and/or container?
    The <application> tag appeared in my \JDev_4157\jdev\system\oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/server.xml unexpectedly but its tag's path was incorrect and so it would not auto-deploy during container start-up. When I copied the ear file from the wireless directory to the embedded-oc4j/applications folder it deployed next time I started the embedded container.
    Even though I removed tags in server.xml and the default-web-site.xml in the container's config folder, and deleted the ear file and the deployed subdirectories, it continued to re-appear. Possibly I didn't always get all of these pieces. It doesn't alway reappear on the first restart; sometimes not until after the 3rd restart. That doesn't make sense to me but I haven't discerned the pattern for when it re-creates itself.

  • JDeveloper 10.1.3.3 and Embedded OC4J server

    This is the Embedded OC4J server on JDeveloper 10.1.3.3 I have pointed it to compile in Java SDK 1.4.2_14
    I have set up the projects datasources to use the JDBC driver ojdbc14.jar
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    C:\jdev\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config>
    C:\j2sdk1.4.2_14\bin\javaw.exe -ojvm -classpath C:\jdev\j2ee\home\oc4j.jar;C:\jdev\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -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.36.73\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    *WARNING: Code-source C:\jdev\jdbc\lib\ojdbc14.jar (from <library> in /C:/jdev/jdev/mywork/NJTransit/NJTransit-oc4j-app.xml) has the same filename but is not identical to /C:/jdev/jdbc/lib/ojdbc14dms.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdev\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.root:0.0.0.
    *Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 4421 ms.
    Target URL -- http://207.200.160.250:8988/NJTransit-NJTransit-context-root/index.jsp
    12/03/08 14:58:05 Oracle Containers for J2EE 10g (10.1.3.0.0) initialized
    My question is why is it having trouble distinguishing between ojdbc14.jar and ojdbc14dms.jar
    as a result I am getting unexpected behavior from the Application
    Declaration in my code
    int mypidm;
    String sql1 = "SELECT SPRIDEN_PIDM FROM SPRIDEN WHERE SPRIDEN_ID = UPPER(?)";
    try{
    PreparedStatement pstmt = conn.prepareStatement(sql1);
    pstmt.setString(1, studid);
    ResultSet rs;
    rs = pstmt.executeQuery();
    //mypidm = rs.getInt("SPRIDEN_PIDM");
    This part of the code drops through i.e. rs.next() always gets a false result
    while (rs.next()) //evaluates to false so mypidm is always zero.
    mypidm = rs.getInt("SPRIDEN_PIDM");
    I am thinking that these two things are related.
    Any Thoughts.

    The tables are not created by default. You can configure your persistence.xml to define how you want tables to be created. The persistence.xml properties are defined in the TopLink class, EntityManagerFactoryProvider (oracle.toplink.<essentials>.ejb.cmp3).
    Set the property, "toplink.ddl-generation" to "drop-and-create-tables" if you want them recreated every time your redeploy. Note this will delete all previous data in the tables, so make sure you do not leave this setting on when you go into production.

Maybe you are looking for

  • Filesharing between Mac and Windows XP

    I got Mac OS X 10.4 and my boyfriend has Windows XP machine. I can easily connect to his shared folder. At first he could not connect to my folder ("Public"). The next step was, that he had to give a username and a password. As I did not set any of t

  • Mail in inbox is deleted automatically all the time

    Hi I have a lion Server installed. Now I have restored a backup for my mail but have a problem with the mail of one of my users. For the other users mail is working fine. The problem is that mail recieved in the inbox is deleted automatically. It is

  • Question on managing two iPods on one computer

    Currently, I manage my iPod Nano on my laptop and manage my iPod Video on my desktop computer. Im now thinking of managing both iPods on one computer. My plan would be to use the same iTunes library for both iPods and whenever the nano is connected,

  • [SOLVED] ISO C++ forbids declaration of 'linkedStackType' with no type

    I got an error when building my program. The program was working fine for a while before showing this error:     In file included from truck.cpp:1:     truck.h:62: error: ISO C++ forbids declaration of 'linkedStackType' with no type     truck.h:62: e

  • My Hardrive is being recognised as 70gb to small!?

    Hi! I recently installed a new hardrive. Its an 80gb western digital. My Motherboard is a Ms-6390. It is being recognised as a 10gb hardrive . Could you please tell me why this is happening and how it could be sorted!?  ?( Thanx! Haz