Oc4j 9.0.4 + struts 1.2.7

i'm getting this exception when the action servlet initializes. it looks like it has something to do with the oracle xml parsers or something.
the same application war file works beautifully in tomcat 5. does anybody have any ideas?
05/06/03 17:11:45 Auto-unpacking C:\JDeveloper\jdev9052\j2ee\home\application-autodeploy\VoucherWebAppEar.ear... done.
05/06/03 17:11:46 Auto-unpacking C:\JDeveloper\jdev9052\j2ee\home\application-autodeploy\VoucherWebAppEar\VoucherWebApp.war... done.
05/06/03 17:11:47 Auto-deploying VoucherWebAppEar (Assembly had been updated)...
05/06/03 17:11:48 Auto-deploying NSAS Voucher App (Assembly had been updated)...
05/06/03 17:11:49 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
16 ERROR org.apache.commons.digester.Digester - Digester.getParser:
org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/dynamic
     at oracle.xml.jaxp.JXSAXParserFactory.setFeature(JXSAXParserFactory.java:137)
     at org.apache.commons.digester.parser.XercesParser.configureXerces(XercesParser.java:185)
     at org.apache.commons.digester.parser.XercesParser.newSAXParser(XercesParser.java:138)
     at org.apache.commons.digester.ParserFeatureSetterFactory.newSAXParser(ParserFeatureSetterFactory.java:73)
     at org.apache.commons.digester.Digester.getParser(Digester.java:682)
     at org.apache.commons.digester.Digester.getXMLReader(Digester.java:891)
     at org.apache.commons.digester.Digester.parse(Digester.java:1572)
     at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:738)
     at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:687)
     at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
     at javax.servlet.GenericServlet.init(GenericServlet.java:258)
     at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
     at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4523)
     at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4617)
     at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:765)
     at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:497)
     at com.evermind.server.Application.getHttpApplication(Application.java:886)
     at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)
     at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:420)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:422)
     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)
31 ERROR org.apache.struts.action.ActionServlet - Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
java.lang.NullPointerException
     at org.apache.commons.digester.Digester.getXMLReader(Digester.java:891)
     at org.apache.commons.digester.Digester.parse(Digester.java:1572)
     at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:738)
     at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:687)
     at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
     at javax.servlet.GenericServlet.init(GenericServlet.java:258)
     at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
     at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4523)
     at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4617)
     at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:765)
     at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:497)
     at com.evermind.server.Application.getHttpApplication(Application.java:886)
     at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)
     at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:420)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:422)
     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)

16 ERROR org.apache.commons.digester.Digester - Digester.getParser:
org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/dynamic
at oracle.xml.jaxp.JXSAXParserFactory.setFeature(JXSAXParserFactory.java:137)
at org.apache.commons.digester.parser.XercesParser.configureXerces(XercesParser.java:185)
at org.apache.commons.digester.parser.XercesParser.newSAXParser(XercesParser.java:138)Yes, a servlet 2.3 spec application should be able to run on oc4j 9.0.4. However, the problem here is that your application is supposed to use the xerces parser, an xml parser that is different from the oracle xml parser used by the server itself. On Tomcat, you do not have this problem because, I believe, xerces parser is used by Tomcat itself.
The solution is, of course, tell your application to use xerces parser. This is something that is not trivial nor officially supported to do before oc4j 10.1.3; see the answer to question
  How can I use a 3rd party XML parser such as xerces with OC4J?
at
  http://www.oracle.com/technology/tech/java/oc4j/1012/collateral/OC4J-FAQ-1012.html
The faq is about 10.1.2, but it applies to 9.0.4 as well at least for that question.
In 10.1.3, it is much easier and supported to use xerces parser for your application. (Yes, there is a bigger difference between 10.1.3 and 10.1.2 than what is between 10.1.2 and 9.0.4!). Please see
  http://www.oracle.com/technology/tech/java/oc4j/1013/howtos/how-to-swapxmlparser/doc/how-to-swapxmlparser.html
which demonstrates the procedure that is indeed a powerful and convenient way to load different libraries.
There is one place in above "how-to" that mentioned
  %ORACLE_HOME%\j2ee\home\howtoswapxmlparser\orion-application.xml. This is typo; it should be
%ORACLE_HOME%\j2ee\home\applications\how-to-swapxmlparser\META-INF\orion-application.xml
This file is not there actually; please copy from the
etc/orion-application.xml inside the zip file you downloaded.
Hope this will answer your questions.

Similar Messages

  • OC4J 9.0.4 + Struts 1.1

    Hi,
    I'm upgrading my web applications from OC4J (1.0.2.2) to OC4J 9.0.4.
    Also, upgrading from JDK 1.3.1 to JDK 1.4.2.
    I use Struts 1.1 as my framework.I have an issue with the <logic:present> tags. These don't seem to work with OC4J 9.0.4.
    For the JSP code snippet shown below , I get an error message:
    quote:
    JspServlet: unable to dispatch to requested page: oracle.jsp.provider.JspCompileException: Errors compiling:[jsp src:line #:133] cannot resolve symbol: variable userRequest
    unquote:
    <logic:present name="userRequest" scope="session">
    <bean:define id="userRequest" name="userRequest" scope="session" type="dsap.business.UserRequest"/>
    <bean:define id="employee" name="userRequest" property="employee" type="dsap.business.Employee" />
    <bean:define id="userModuleList" name="userRequest" property="userModuleList" />
    </logic:present>
    This used to work well with OC4J 1.0.2.2.
    Looks like the error is caused by the JSP compiler. I tried with both JDK 1.3.1 and 1.4.2 and get the same error.
    Could somebody suggest a solution or a workaround ? I would not want to use JSTL.
    Any help will be greatly appreciated.
    Thanks,
    Shyam
    Message was edited by:
    shawork
    Message was edited by:
    shawork

    Hi Qiang, thanks for your reply. I guess you mis-understood my issue. I apologize for the confusion. See below for details:
    ==quote==
    <bean:define id="userRequest" name="userRequest"
    scope="session" type="dsap.business.UserRequest"/>
    ==unquote==
    Is this "jsp src:line #:133"? This is not line 133, line 133 is where I access a property of the bean userRequest: i.e.
    <html:text name="formBean" property="reqType" value="<%=userRequest.getReqType()%>" />
    I do not use the bean:define tag for "userRequest" more than once in my JSP.
    It seems like the JSP compiler doesn't recognize the bean:define tags embedded inside the logic:present tags and it throws the
    "JspCompileException: Errors compiling:[jsp src:line #:133] cannot resolve symbol: variable userRequest " when I access the "userRequest" bean's properties.
    I changed the logic:present tag to logic:notEmpty and I got the same error message.
    So looks like OC4J 9.0.4 JSP compiler has a problem with the embedded bean:define tags. This worked fine with OC4J 1.0.2.2.
    Do you have any solution/workaround for this issue ?
    I have used such embedded bean:define tags at lots of places in my applications.
    I really appreciate your help.
    Thanks,
    Shyam

  • OC4J 9.0.4 Struts

    Has anyone had the opportunity to run struts 1.1 apps in oc4j 9.0.4 preview release?
    I'm having problems with the way the tld's are being referenced (i.e. <%@ taglib prefix="logic" uri="http://jakarta.apache.org/struts/tags-logic" %>) in the jsp. I ran into one error:
    Error: Unable to load taghandler class: /WEB-INF/abc-tags.tld
    and found the fix here: http://otn.oracle.com/tech/java/oc4j/904/release_notes/release-notes-904-preview.html (I turned tld caching off) Then I got the following error after that:
    Error: "http://jakarta.apache.org/struts/tags-nested" is not a registered TLD namespace.
    It looks like the struts tld is using jsp1.1 elements, while oc4j might be expecting jsp1.2 elements. I'm wondering if there is a struts package out there with jsp1.2 elements in the tld??? Can I change anything in 9.0.4 for this to work?
    Any pointers or thoughts are appreciated =)
    Thanks in advance!
    -Mark

    Has anyone had the opportunity to run struts 1.1 apps in oc4j 9.0.4 preview release?
    I'm having problems with the way the tld's are being referenced (i.e. <%@ taglib prefix="logic" uri="http://jakarta.apache.org/struts/tags-logic" %>) in the jsp. I ran into one error:
    Error: Unable to load taghandler class: /WEB-INF/abc-tags.tld
    and found the fix here: http://otn.oracle.com/tech/java/oc4j/904/release_notes/release-notes-904-preview.html (I turned tld caching off) Then I got the following error after that:
    Error: "http://jakarta.apache.org/struts/tags-nested" is not a registered TLD namespace.
    It looks like the struts tld is using jsp1.1 elements, while oc4j might be expecting jsp1.2 elements. I'm wondering if there is a struts package out there with jsp1.2 elements in the tld??? Can I change anything in 9.0.4 for this to work?
    Any pointers or thoughts are appreciated =)
    Thanks in advance!
    -Mark

  • Mixed HTTP/HTTPS in one Struts-Application?

    Hello!
    I need to mix SSL (HTTPS)-Connection for Login and a few admin-pages and "normal" HTTP-Connections for most of my pages in my Struts-bases Webapplication.
    How can i handle this issue?
    Where can i get a detailled description of configuration an OC4J or Tomcat and Struts?
    regards
    Harald.

    Hello Frank!
    I tested sslstruts-example on standalone - tomcat and standalone - oc4j with ssl and it worked using http- and https-port defined in tomcat or oc4j.
    My problem is, that my environment is a tomcat with apache webserver (mod_jk) or ias (apache with oc4j mod_oc4j).
    What Port-Numbers do you usein struts-config.xml in this scenario (HTTP/HTTPS-Port from Apache Webserver)?
    regards
    Harald.

  • Jdeveloper 10.1.2 creating jar files in user's temporary director

    Hi all,
    McAfee uses 100% of my PC CPU every once in a while when jdevw.exe creates jar files in C:\Documents and Settings\wase\Local Settings\Temp. They get created at seemingly random times while I am running the embedded OC4J in debug mode (Struts, BC4J, ADF). McAfee is configured to ignore a few of my directories and I would like to direct those files into an unscanned directory. (No, The powers that be will NOT turn off on access scanning of archives. Sigh.) The files go away when I shut down JDeveloper.
    Thanks,
    --Amy Smith
    Here is a list of the files that were created.
    /cygdrive/c/Documents and Settings/wase/Local Settings/Temp\ $ ls *.jar
    BusinessCSCommon28154.jar commons-beanutils28174.jar javax-ssl-1_228194.jar ordhttp28213.jar
    BusinessCSMT28155.jar commons-collections28175.jar jdev-cm28195.jar ordim1128216.jar
    LW_PfjBean28156.jar commons-digester28176.jar jewt428196.jar ordim28215.jar
    adf-controller28157.jar commons-el28177.jar jmf28197.jar regexp28217.jar
    adfm28158.jar commons-fileupload28178.jar jsp-el-api28198.jar share28218.jar
    adfmtl28159.jar commons-lang-228179.jar jsse28199.jar standard28219.jar
    adfmweb28160.jar commons-lang28180.jar jssl-1_128200.jar struts-legacy28220.jar
    adftags28161.jar commons-logging28181.jar jssl-1_228201.jar struts28221.jar
    aurora_client28162.jar commons-validator28182.jar ldapjclnt1028202.jar struts28230.jar
    bc4jct28163.jar customizer28183.jar log28203.jar template28222.jar
    bc4jctejb28164.jar datatags28184.jar log4j-128204.jar uix228223.jar
    bc4jdomorcl28165.jar db2jcc28185.jar mediaplayer28205.jar uix2tags28224.jar
    bc4jimdomains28166.jar db2jcc_license_cisuz28186.jar mts28206.jar uixadfrt28225.jar
    bc4jmt28167.jar dms28187.jar multiplayer28207.jar xmlcomp28226.jar
    bc4jmtejb28168.jar dsv228188.jar nls_charset1228208.jar xmlparserv228227.jar
    bc4jutil28169.jar hawutil28189.jar ojmisc28209.jar xsqlserializers28228.jar
    bigraphbean28170.jar help428190.jar oracle-el28210.jar xsu1228229.jar
    classes1228171.jar inspect428191.jar oracle_ice28211.jar
    classes12dms28172.jar jakarta-oro28192.jar oraclexsql28212.jar
    collections28173.jar javax-ssl-1_128193.jar ordhttp1128214.jar

    Any suggestions for how I could pursue finding a resolution?
    Thanks,
    --Amy Smith                                                                                                                                                                           

  • Java.lang.NoClassDefFoundError in web application

    Hello all,
    We have a J2EE app running in OC4J 903. One Struts action class uses our custom build jsp tag library (dataview.jar). Compilation no errors. After deploying all the action classes are in WEB-INF\classes dir and out tag library (dataview.jar) is in WEB-INF\lib directory (and no where else in the project).
    When we run the application in the browser, whenever we hit the code related to the tag library, it gives the following error:
    java.lang.NoClassDefFoundError: com/xyz/tag/dataview/GridTag
    Thank you so much for helping out.
    Regards,
    Prasad.

    kept the jars under APP-INF/lib

  • Struts 1.2.9 on OC4J 10.1.2 Not working

    Hi All,
    I have been trying all sort of different things to deploy my .ear file on OC4J that has struts used in .war file. The same .ear file deploys correctly and works fine on runtime for my Standalone OC4J10.1.2 on windows but when I try to deploy it on UNIX box for Standalone OC4J10.1.2 it does deploy right but it breaks runtime on access to login.jsp as soon as it finds the first struts tag.
    Pl help me asap. I have no idea, if this version of struts is not supported by this version of OC4J or what?
    Here is the config for web.xml
         <servlet>
              <servlet-name>action</servlet-name>
              <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
              <init-param>
                   <param-name>application</param-name>
                   <param-value>ApplicationResources</param-value>
              </init-param>
              <init-param>
                   <param-name>config</param-name>
                   <param-value>/WEB-INF/struts-config.xml</param-value>
              </init-param>
              <init-param>
                   <param-name>debug</param-name>
                   <param-value>2</param-value>
              </init-param>
              <init-param>
                   <param-name>detail</param-name>
                   <param-value>2</param-value>
              </init-param>
              <load-on-startup>2</load-on-startup>
         </servlet>
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    My all struts related jars are located at WEB-INF/lib
    commons-fileupload.jar
    commons-logging.jar
    commons-digester.jar
    commons-beanutils.jar
    commons-validator.jar
    jakarta-oro.jar
    antlr.jar
    struts.jar
    I am not specifying any classpath as the server should pick up libraries from WEB-INF/lib.
    Here is my login.jsp
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <style type="text/css" media="screen">
    @import url(<html:rewrite page="/COES/css/coes.css" />);
    </style>
    <script type="text/javascript" language="Javascript"
    src="/COES/javascript/coes.js">
    </script>
    <script type="text/javascript" language="Javascript"
    src="/COES/javascript/datefunctions.js">
    </script>
    <title><bean:message key="coes.title"/></title>
    <!-- Begin Validator Javascript Function-->
    <html:javascript formName="LoginForm"/>
    <!-- End of Validator Javascript Function-->
    </head>
    <body>
    <table>
    <tr><td class="errors"><html:errors/></td></tr>
    <tr>
    <td>
    <table width="100%" class="headertable" border="0">
    <tr>
    <td width="1%"><html:image page="/img/nexcomlogo.gif" styleClass="css/headerLogoImage" altKey="coes.build"/></td>
    <td align="center"><bean:message key="coes.title"/> - <bean:message key="coes.version"/><br><br>
    </td>
    <td> </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td>
    <html:form action="Login" onsubmit="return validateLoginForm(this);">
    <b>Enter your location passcode:</b> 
    <html:password property="passcode"/>
    <html:submit property="login"
    styleClass="smallblackbutton"
    value="Log In"
    onmouseover="javascript:goLite(this)"
    onmouseout="javascript:goDim(this)"
    />
    </html:form>
    </td>
    </tr>
    </table>
    </body>
    </html>
    It breaks at line
    @import url(<html:rewrite page="/COES/css/coes.css" />);
    and on browser I see err
    java.lang.NullPointerException     at org.apache.struts.taglib.TagUtils.pageURL(TagUtils.java:1070)     at org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:449)     at org.apache.struts.taglib.html.RewriteTag.doStartTag(RewriteTag.java:55)     at jsp.login._jspService(_login.java:51)     [SRC:/jsp/login.jsp:12]     at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)     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 (10.1.2.0.2)].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 (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)     at java.lang.Thread.run(Thread.java:568)
    The log file always shows below err, no matter what change I make:
    [17 Nov 2006 10:22:24] ERROR [Digester] Digester.getParser:
    org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/dynamic
         at oracle.xml.jaxp.JXSAXParserFactory.setFeature(JXSAXParserFactory.java:128)
         at org.apache.commons.digester.parser.XercesParser.configureXerces(XercesParser.java:185)
         at org.apache.commons.digester.parser.XercesParser.newSAXParser(XercesParser.java:138)
         at org.apache.commons.digester.ParserFeatureSetterFactory.newSAXParser(ParserFeatureSetterFactory.java:73)
         at org.apache.commons.digester.Digester.getParser(Digester.java:682)
         at org.apache.commons.digester.Digester.getXMLReader(Digester.java:891)
         at org.apache.commons.digester.Digester.parse(Digester.java:1572)
         at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:738)
         at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:687)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
         at javax.servlet.GenericServlet.init(GenericServlet.java:258)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2354)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4795)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:549)
         at com.evermind.server.Application.getHttpApplication(Application.java:890)
         at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)
         at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)
         at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)
         at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)
         at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)
         at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)
         at java.lang.Thread.run(Thread.java:568)
    [17 Nov 2006 10:22:24] ERROR [ActionServlet] Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
    java.lang.NullPointerException
         at org.apache.commons.digester.Digester.getXMLReader(Digester.java:891)
         at org.apache.commons.digester.Digester.parse(Digester.java:1572)
         at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:738)
         at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:687)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
         at javax.servlet.GenericServlet.init(GenericServlet.java:258)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2354)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4795)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:549)
         at com.evermind.server.Application.getHttpApplication(Application.java:890)
         at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)
         at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)
         at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)
         at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)
         at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)
         at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)
         at java.lang.Thread.run(Thread.java:568)
    Thanks

    Did you try changing the xml parser to use Xerces instead of Oracle?
    http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-swapxmlparser/doc/readme.html
    It is a pretty long article.
    Pat

  • Error in mapping Struts application OC4J OAS 9.0.4.3

    Hello , i have a struts app that runs fine in OC4J OAS 9.0.4.2 version
    but recentrly i upgrade the Application server to 9.0.4.3 version
    and the mappings are not working in the application
    for example : the success page dont show up after a successfull login
    but if i type the success.jsp page on the url it does appear.
    as a result the redirect politics of struts struts-config.xml are not working
    thanks for any help
    German Luis

    Hi,
    Can u please say the procedure for upgrading OC4j 9.0.4 (stand alone) to 9.0.4.3.
    Thanks in advance.
    Ashokkumar.N

  • OC4J 9.0.3 and Struts 1.1b1

    OC4J 9.0.3 is compatible with Struts 1.0.2 but has some problem with Struts 1.1b1 tag libraries, see the following error (struts-example):
    OracleJSP: oracle.jsp.parse.JspParseException: N. riga 2, <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    Errore: duplicated tag definitions within the same TLD: password
    OC4J 9.0.2 works fine with both Struts releases.
    Any hint?

    There was a bug in struts 1.1b1 where struts-html.tld had a duplication of
    the <password> tag. The bug is 8304 (also 8152), in the apache bug database.
    To fix it, basically, you need to get rid of the extra definitions in struts-html.tld.
    Note that this .tld is in 2 places in strut-example.war, 1) under WEB-INF and
    2) in the struts.jar in WEB-INF/lib/struts.jar.
    So, extract, edit and update the jars:
    1) jar xvf struts-example.war WEB-INF/struts-html.tld
    edit WEB-INF/struts-html.tld (remove whole second password tag)
    jar uvf struts-example.war WEB-INF/struts-html.tld
    2) jar xvf struts-example.war WEB-INF/lib/struts.jar
    cd WEB-INF/lib
    jar xvf struts.jar META-INF/tld/struts-html.jar
    edit as above
    jar uvf struts.jar META-INF/tld/struts-html.jar
    cd ../..
    jar uvf struts-example.war WEB-INF/lib/struts.jar
    3) Finally redeploy struts-example.war

  • Using Struts with JDeveloper, BC4J and OC4J 9.0.2

    Is it feasible to use Struts with JDeveloper 9.0.2, BC4J 9.0.2 and OC4J 9.0.2? We have an application that uses the BC4J JBO tags in version 9.0.2. We wish to use Struts and we want to retain the use of the JBO tags. Is there a way to do this without upgrading to 9.0.3?

    Here are two related questions:
    Can we upgrade to oracle9iAS 9.0.3 yet still use JDeveloper 9.0.2 and BC4J/JBO 9.0.2?
    Can we upgrade to JDeveloper 9.0.3 and BC4J/JBO 9.0.3 yet still deploy to oracle9iAS 9.0.2?

  • Eclipse Tomcat Hibernate Struts - JDeveloper OC4J migration problem.

    In my current project, everybody uses Eclipse and Tomcat as development environment. I decide to try JDeveloper in this project. Not that this configuration works with eclipse WPT.
    When I try to open project, I get an error as below.
    Target URL -- http://127.0.0.1:8988/PSSO/index.html
    30.Haz.2008 21:50:03 oracle.classloader.util.ClassLoadLogger log
    WARNING: Code-source D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\BuildScripts\DirectoryThirdPartyLibraries\jta.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent) has the same filename but is not identical to /E:/downloads/tools/jdevstudiobase1111/j2ee/home/lib/jta.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in E:\downloads\tools\jdevstudiobase1111\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.web.PSSO:0.0.0.
    30.Haz.2008 21:50:03 oracle.classloader.util.ClassLoadLogger log
    WARNING: Code-source E:\downloads\tools\jdevstudiobase1111\jakarta-struts\lib\struts.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent) has the same filename but is not identical to /D:/atilla/projects/javaProjects/meteksan/EclipseWorkspace_RTUK/BuildScripts/DirectoryThirdPartyLibraries/struts.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent). 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.web.PSSO:0.0.0.
    08/06/30 21:50:17 Hibernate: select t.name, sa.value from RTUK_PSSO.ytk_sistem_attribute sa, RTUK_PSSO.ytk_attribute t where sa.attribute_id = t.id
    21:50:20,687 ERROR ActionServlet:364 - Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
    javax.servlet.ServletException: org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [from tr.com.meteksan.genel.gnlKurumOrganizasyon.GnlKurumOrganizasyon ko order by ko.organizasyonKodu]
    at tr.com.meteksan.web.plugin.InitSozlukDegerleriPlugIn.init(InitSozlukDegerleriPlugIn.java:49)
    at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
    what is interesting is that
    first query with hibernate works, but second query does not works.
    My JDeveloper as below
    CVS Version Internal to Oracle JDeveloper 11g Technology Preview 4 (client-only)
    Java(TM) Platform 1.5.0_15
    Oracle IDE 11.1.1.0.22.49.49
    Versioning Support 11.1.1.0.22.49.49
    I wonder if it is related to struts and jta jars defined twice.

    There might be a problem with the OC4J not finding the hibernate library you are trying to use.
    Try setting the library also in the tools->embedded OC4J preferences.

  • OC4J Struts Tutorial

    I was following the struts tutorial and everything was fine until I tried to run it. When starting OC4J, I got:
    Error initializing server: Error instantiating default application at file:/home/mcdanijr/jdevhome/system9.0.5.1.1605/oc4j-config/application.xml: Constructing UserManager for default:caught oracle.security.jazn.JAZNRuntimeException
    04/05/04 16:25:54 java.lang.IllegalStateException: Shutdown in progress
    04/05/04 16:25:54      at java.lang.Shutdown.add(Shutdown.java:82)
    04/05/04 16:25:54      at java.lang.Runtime.addShutdownHook(Runtime.java:193)
    04/05/04 16:25:54      at oracle.security.jazn.util.PersistenceService$2.run(Unknown Source)
    04/05/04 16:25:54      at java.security.AccessController.doPrivileged(Native Method)
    04/05/04 16:25:54      at oracle.security.jazn.util.PersistenceService.<init>(Unknown Source)
    04/05/04 16:25:54      at oracle.security.jazn.util.PersistenceService.getService(Unknown Source)
    04/05/04 16:25:54      at oracle.security.jazn.util.PersistenceService$PersistenceThread.run(Unknown Source)
    Is there some magic I missed?
    Best,
    Joe McDaniel
    The Institute for Genomic Research
    Rockville, MD

    Nevermind (I think). I switched to 1.4.1 as the JDK for the project and it looks like OC4J is starting OK now.

  • Using STRUTS on oc4j ????

    Hi!
    I'm experiencing problems when trying to run a sample STRUTS-application on OC4J.
    I have placed it under 'default-web-app' and I'm pretty sure that the rest of the configuration is OK (updated Application.xml and http-web-site.xml). But it will not work!!
    From the global-application.log:
    7/16/02 11.06 AM Banking: JspServlet: unable to dispatch to requested page: oracle.jsp.parse.JspParseException: Line # 3, <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> ERROR: duplicated tag definitions within the same TLD: password
    at oracle.jsp.parse.XMLUtil.domDocToTagLib(XMLUtil.java:870)
    But the problem is that there is NO duplicated definitions of the 'password'-tag in the file 'struts-bean.tld'!!!!!!!!!
    Have anybody experienced similar problems with STRUTS and OC4J ?
    I have deployed the same application to JBOSS (just dropping the war-file on the deploy-catalog of JBoss), and it starts off immediately.
    The web-application is in a file called banking.war. The application can be downloaded from TheServerSide.com, in the free downloads from the Struts book by O'Reilley, and its in the zip-file for Chapter 3.
    I would appreciate any response on this issue, and maybe we don't have to switch to JBoss to make our application work...?
    Regards
    Kolbjorn Jetne

    I saw a post on this recently. The error is in the Struts build that you are using. Apparently the latest builds have eradicated this bug. Therefore remove Struts, download a later version and re-deploy.
    For what it's worth, I would deploy your application as a seperate application. If you want to use directories that's fine (unless you are using 9iAS, i.e. OEM). Simply edit the server.xml file to add a new application pointing to the directory containing your stuff. Don't forget that the directory structure has to be EAR standard. There is another thread about this.
    Then edit the http-web-site.xml (or default-web-site.xml in 1022) to add your web application.
    Simple. It also makes removing an application a lot easier if you have to upgrade your version of Struts.
    Rob

  • How to install and config Struts with oc4j?

    Hi,
    I download jakarta-struts-1.0,but I don't know
    how to install and config Struts with oc4j?Can you
    tell me the detail steps?
    Thanks!

    Follow the instructions in this link:
    http://jakarta.apache.org/struts/installation-oas.html. It's
    for Orion but should also apply for oc4j.

  • Struts 1.1-b2 and OC4J R2

    Has anyone successfully deployed an struts 1.1-b2 application to a Release 2 app server? I have it working locally in JDeveloper but get the "message resource not found" error once I deploy to the container. The struts.jar is in the web-inf/lib, the properties files are in the web-inf/classes directory after deployment.
    Ruth

    I got the app up and running, but some info on the struts mailing list suggest you need to make configuration changes to certain files on the server, such as adding the struts jars as library entries in the orion-application.xml file in the application deployments folder. Have you had to make configuration changes after deployment to get it to run smoothly or are these workarounds for previous versions of struts and OC4J?
    Ruth
    Yes, we are able to do that. Since you have it loaded into JDeveloper, make your Struts source code available and step through it, so you can find out where the process isn't working the way you expect.

Maybe you are looking for

  • How to write a formula for display the value by group

    Post Author: abadugu CA Forum: Formula Hi Could any one please help me on writing the formula for the below senario. I'm creating Crystal report Via using ClearQuest (IBM tool) since this tool is not supporting subreport function. I'm planning to wri

  • Which HDD More Appropriate?

    Hi, I'm about to buy the MacBook Pro 2Ghz but was wandering if there would be a big advantage to buying the model with the faster HDD? I will be using MS Office (Word mostly), Adobe Photoshop CS2 and the Internet. MacBook Pro   Other OS  

  • Cgicmd.dat not working in 9i Reports 9.0.2

    I am trying to configure key mapping. It ws working fine when we were using 6i. but with 9i it just not working please HELP. This url is working fine: http://server:7777/reports/rwservlet?report=tbt1.RDF+userid=user/pwd@connstr+destype=cache+desforma

  • IPhone 3GS very thin cracks on the coating

    I have an iPhone 3GS 32GB White that is five days old and i have noticed that around the speaker and microphone and around the sim tray there are very small cracks. At first i thought it was the plastic but after a closer inspection with the help of

  • I am trying to get my system preferences out of the trash, but my drag and drop is not working.

    I just can't find the answer anywhere.