UiXML with Struts: Illegal Access Error

I created a project in JDeveloper for the example found in the JDeveloper help documentation, "Using uiXML with Struts". It says I need uix-config.xml in my WEB-INF directory. I created one and copied the xml from the example to it. When I run login.uix from JDeveloper I get:
500 Internal Server Error
java.lang.IllegalAccessError: oracle/cabo/servlet/struts/ui/MessageDataProvider
java.lang.Object oracle.cabo.servlet.struts.ui.DataProviderParserFactory$Parser.getNodeValue(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String, org.xml.sax.Attributes)
void oracle.cabo.share.xml.LeafNodeParser.startElement(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String, org.xml.sax.Attributes)
void oracle.cabo.share.xml.TreeBuilder$Handler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
void oracle.cabo.share.xml.ParserAdapter.startElement(java.lang.String, org.xml.sax.AttributeList)
void oracle.xml.parser.v2.XMLContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
XMLContentHandler.java:166
I notice if I remove that file, I don't get this error, but the struts components do nothing, which seems logical if we do indeed need this configuration information.
I also notice the following error in JDeveloper when I compile login.uix:
Warning(11,44): logon.uix: Parsing error, line 11, column 44: <form> is not an understood element.
This sometimes means the element's namespace (http://xmlns.oracle.com/uix/struts) is set incorrectly. This may also be an issue with the syntax of its parent element.
I'm not sure what that is.
Thanks for your help,
-James

That solved the problem! I am relatatively new to
all this as are many of us "seasoned developers"...and learning
fast...well...sort of.
Another observation: I placed the following entry,
oracle.cabo.servlet.struts.StrutsUIExtension, in my web.xml file
(borrowed from a plain ol' jsp struts test I've been working
with). Here's the whole section for the uix servlet:
<servlet>
<servlet-name>uix</servlet-name>
<servlet-class>oracle.cabo.servlet.UIXServlet</servlet-class>
<init-param>
<param-name>oracle.cabo.servlet.pageBroker</param-name>
<param-value>oracle.cabo.servlet.xml.UIXPageBroker</param-value>
</init-param>
<init-param>
<param-name>oracle.cabo.ui.UIExtensions</param-name>
<param-value>oracle.cabo.servlet.struts.StrutsUIExtension,oracle.cabo.data.jbo.ui.JboUIExtension</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
That solved the parsing errors I was receiving from JDeveloper
saying that certain elements were not understood. But
then...when I run logon.uix, the browser displayed this lovely
error:
java.lang.IllegalStateException: ParserFactory already registered at http://xmlns.oracle.com/uix/struts
AAAAAAARGHH! Sooooooo...I removed the uix-config.xml from
the WEB-INF directory, and hooray! I got my form. Whew!
I can also get it to run by leaving my uix-config.xml alone and
removing that entry in web.xml. Weird? Anyway, I'm leaving out
the entry in uix-config.xml or just not including it for now.
I'm sure I'll run in to some other problem with that later :)
The little application doesn't work quite right yet. When I
click the "Log On" button I get a "Page not found". Must be a
typo or something.
Anyway, thanks for your help Adam. I'm sure I'll have more
questions later. I'll try to make them good ones.
-James

Similar Messages

  • Illegal access error at runtime

    Hi,
    I am getting an illegal access error while trying to call a method.
    - Class1 tries to call method on Class2.
    - Method has package visibility
    - Both classes are in same package.
    - Class1 is being invoked by a class in a Web Application which is
    in a completely different package. Class1 gets invoked properly
    and then instantiates Class2. It then tries to call the method on
    Class2.
    - Compiler is compiling successfully i.e. no compile time errors
    Any clues?
    Env:
    JDK 1.4.2_01
    App Server Tomcat 4.0.6
    Thanks
    Reg
    Aashish

    Hi,
    I am getting an illegal access error while trying to
    call a method.
    - Class1 tries to call method on Class2.
    - Method has package visibility
    - Both classes are in same package.
    - Class1 is being invoked by a class in a Web
    Application which is
    in a completely different package. Class1 gets
    s invoked properly
    and then instantiates Class2. It then tries to call
    l the method on
    Class2.
    - Compiler is compiling successfully i.e. no compile
    time errors
    Any clues?
    Env:
    JDK 1.4.2_01
    App Server Tomcat 4.0.6
    Thanks
    Reg
    AashishThe problem is the Class1 and Class2 are being loaded by different classloaders. Because of this, they are considered to be in different packages by the VM, and hence the IllegalAccessError.
    To correct this, make sure both classes are only available in a single classloader context. So if these classes are only used by the WebApp, include them in a jar in WEB-INF/lib or WEB-INF/classes..
    If yyou need access to these across multiple webapps, or by some other non-webapp classes, place them in the /common/lib directory for Tomcat.
    Whatever you do, MAKE SURE THEY AREN'T avaialble in BOTH! Which is what appears to be the problem now.

  • Help! Problem with Struts tag html:errors/

    Hi everybody,
    In my JSP page called addUser.jsp, i have the different Struts Tag
    <html:errors/>
    <html:form action="/addUser" focus="firstName">
    </html:form>
    I have of course the ApplicationResources.properties file with differents Struts properties:
    errors.footer=</ul><hr>
    errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul>
    errors.ioException=I/O exception rendering error messages: {0}
    and an other one:
    error.fieldsNeeded=<font color="#FF0000">Some fields are missing.</font>
    when I call the addUser form, my JSP page display:
    null Some fields are missing. null
    Have u any suggestion about my prob?
    tx a lot
    s.

    Hi,
    can u post the java code where u are actually adding the error to the action errors. may be there is something wrong with that. I dont see any problem with the jsp or the applicationsResources.properties.
    Thanks
    Latha

  • Help with "open for access" error

    Why am I getting file wasn't found error here? (The file is on the desktop).
    try
    -- set myPrefsFile to (choose file with prompt "Select a file to read:" of type {"TEXT"})
    open for access (file "10.3.9:desktop:myFile")
    set fileContents to (read file "10.3.9:desktop:myFile")
    close access file "10.3.9:desktop:myFile"
    display dialog fileContents
    on error Error_Message
    display dialog Error_Message
    end try
    Lennox

    1. You need to specify the correct path and extension. For example:
    10.3.9:Users:username:Desktop:myFile.txt
    2. You shouldn't need to use 'open for access' if you're only going to read the file.
    I don't have any additional suggestions for your other script.
    (36335)

  • Illegal Access Error

    Hello,
    How do I get the time difference for a day?
    code starts here:
    class Find extends JPanel implements ActionListener {
    public void actionPerformed (ActionEvent evt) {
    if (evt.getSource == search) {
    //fromMon,fromDt,toMon and toDt are integers
    Calendar cal = new GregorianCalendar(2003, fromMon, fromDt);
    cal.set (2003, fromMon, fromDt, Integer.parseInt(SSFrom.substring(0,2)),0); // setting the time and date for the calendar object
    Calendar cal1 = new GregorianCalendar(2003, toMon, toDt);
    cal1.set (2003, toMon, toDt, Integer.parseInt(SSTo.substring(0,2)),0);
    Calendar currCal = new GregorianCalendar();// current date and time
    // now trying to get the difference between the dates/times
    long diffHours = (cal.getTimeInMillis()-currCal.getTimeInMillis())/(60*60*1000);
    long diffDays1 = (cal.getTimeInMillis()-currCal.getTimeInMillis())/(24*60*60*1000);
    long diffDays = (cal1.getTimeInMillis()-cal.getTimeInMillis())/(24*60*60*1000);
    code ends here ...
    Now the whole thing compiles properly, but gives an IllegalAccessError at runtime. It says "Exception occured during event dispatching :java.lang.IllegalAccessError: try to access method java.util.Calendar.getTimeInMillis() from class Find....."
    It works fine with SunONE studio.
    Thanks

    I encountered the exact same error when making a call to getTimeInMillis on a Calendar object. As it turned out, the javac compiler was version 1.4.1._05 while the java command was invoking a jre from an oracle installation which was ver 1.3. Thanks to jshell for his help!! A "java -version" revealed the culprit!

  • Illegal Access Error : using Custom Tags

    Ive a very simple custom tag that try to print curent date on webpage but when I try to run it gives me following error
    java.lang.IllegalAccessError: try to access class com.sun.xml.tree.ParentNode from class org.apache.jasper.compiler.TagLibraryInfoImpl
    java.lang.IllegalAccessError: try to access class com.sun.xml.tree.ParentNode fr
    om class org.apache.jasper.compiler.TagLibraryInfoImpl
    Here is my jsp code
    <html>
    <head>
    <%@ taglib uri="http://127.0.0.1:8080/examples/cdate.tld" prefix="examples"%>
    </head>
    <body>
    The file is <examples:cdate/>
    </body>
    </html>
    here goes cdate.tld code
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
    <tlibversion>1.0</tlibversion>
    <jspversion>1.1</jspversion>
    <shortname>examples</shortname>
    <uri>http://www.mycompany.com/taglib</uri>
    <info>An example tag library</info>
    <tag>
    <name>cdate</name>
         <tagclass>datex.DateTag</tagclass>
    <info>Returns Current Date</info>
    </tag>
    </taglib>
    here is web.xml entry
    <taglib>
         <taglib-uri>
              http://127.0.0.1:8080/examples/WEB-INF/cdate.tld
         </taglib-uri>
         <taglib-location>
              /WEB-INF/cdate.tld
         </taglib-location>
    </taglib>
    here is the taghandler class code
    package datex;
    import java.io.*;
    import java.util.Date;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class DateTag extends javax.servlet.jsp.tagext.TagSupport {
    private String date;
    public int doStartTag() throws JspException {
              StringBuffer html = new StringBuffer();
              date = new Date().toString();
         html.append("Current Date : ");
         html.append(date);
         try {
         pageContext.getOut().write(html.toString());
         } catch (IOException ioe) {
         throw new JspException(ioe.getMessage());
    return EVAL_BODY_INCLUDE;
    public void setDate(String s) {
    this.date = s;
    can any one plz hlp me

    when i put the struts tags into the subforld such as /web-inf/tags , the jsp page tell me parsing tags error.
    should i must put all this tags in the right fold?
    i configure the url location in the web.xml as the route /web-inf/tags/....tld why invalid?

  • Data access error while running  the script in fdm workbench script editor

    Hello Experts,
    I have been getting the error when i run the script in script editor of fdqm workbench client.this is the error
                              -2147467259 Data access error and it is navigating the error at line 30 about this script "Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)"
    Please revert me asap where i should load the data from peoplesoft to one of my planning database through fdm.
    Thanks in advance...

    Hi,
    Thanks for your suggestion's here i am going to run the datapump script so while i am running in workbench it is throwing data access error.So as you guy's suggested i created one import format and added this script to that import format which is added to one of my location even it is throwing the same error.I am getting the error at this sentence   "strWorkTableName" I want to know what is this where it reflect's?So my question is Is there any difference while running data pump or integration script.Please let me know a detailed navigation steps to run this script's with out data access error to run these kind of scripts.
    Note:Again my target is to load the data to planning database through fdqm which i am doing through sql statement's.
    Suggest your valuable suggestion's
    Thanks in advance...
    I am getting the error at this sentence   "strWorkTableName" I want to know what is this where it reflect's?

  • Error Illegal access to the viewer. Please use a valid URL

    Hi, One question:
    Illegal access to the viewer. Please use a valid URL?
    Pls, any comment with this error.
    Regards
    LEJS

    Check the KBA 1892338 - Error: "illegal access to the viewer, please use a valid url" while viewing webi reports from BI Launchpad.This may be because of licence being expired.

  • Weblogic crash after "Illegal memory access" error

    hi all. Weblogic application crashed after receiving an illegal memory access error. any thoughts....
    Error Message: Illegal memory access. [54]
    Signal info : si_signo=11, si_code=2 si_addr=0xb5778850
    Version : BEA JRockit(R) R27.4.0-90_CR358515-94243-1.5.0_12-20080118-1154-l
    inux-ia32
    The Weblogic Admin Console will not start since the Jrockit crash. I've attached the log from the failed startup.
    <Jan 8, 2009 11:13:22 AM MDT> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.la
    ng.ClassFormatError: com/bea/xbean/store/Xobj$DocumentXobj : invalid LineNumberTable pc at 27684
    java.lang.ClassFormatError: com/bea/xbean/store/Xobj$DocumentXobj : invalid LineNumberTable pc at 27684
    log from weblogic admin stdout:
    Java home=/ps_opt/wl92/jrockit_150_12
    Java command line=java -jrockit -Xms256m -Xmx256m -Dweblogic.Chunksize=65536 -Djava.util.logging.config.file=/ps_opt/wl92/webserv/myserver/applications/peoplesoft/logging.properties -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Dweblogic.Name=WebLogicAdmin -Dps_vault=/ps_opt/wl92/webserv/myserver/psvault -Djavax.net.ssl.trustStore=/ps_opt/wl92/webserv/myserver/keystore/pskey -Dweblogic.ProductionModeEnabled=true -Djava.security.policy=/ps_opt/wl92/weblogic92/server/lib/weblogic.policy -Dssl.debug=false -Dps_home=/ps_opt/wl92 weblogic.Server
    Java options=-jrockit -Xms256m -Xmx256m -Dweblogic.Chunksize=65536
    <Jan 8, 2009 11:13:20 AM MDT> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    /ps_opt/wl92/weblogic92/platform/lib/p13n/p13n-schemas.jar:/ps_opt/wl92/weblogic92/platform/lib/p13n/p13n_common.jar:/ps_opt/wl92/weblogic92/platform/lib/p13n/p13n_system.jar:/ps_opt/wl92/weblogic92/platform/lib/wlp/netuix_common.jar:/ps_opt/wl92/weblogic92/platform/lib/wlp/netuix_schemas.jar:/ps_opt/wl92/weblogic92/platform/lib/wlp/netuix_system.jar:/ps_opt/wl92/weblogic92/platform/lib/wlp/wsrp-common.jar:/ps_opt/wl92/webserv/myserver/lib/endorsed/xalan.jar:/ps_opt/wl92/webserv/myserver/lib/pluto-1.0.1.jar:/ps_opt/wl92/webserv/myserver/lib/portlet-api-1.0.jar:/ps_opt/wl92/webserv/myserver/lib/ps_patch.jar>
    <Jan 8, 2009 11:13:21 AM MDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with BEA JRockit(R) Version R27.4.0-90_CR358515-94243-1.5.0_12-20080118-1154-linux-ia32 from BEA Systems, Inc.>
    <Jan 8, 2009 11:13:22 AM MDT> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.ClassFormatError:
    com/bea/xbean/store/Xobj$DocumentXobj : invalid LineNumberTable pc at 27684
    java.lang.ClassFormatError: com/bea/xbean/store/Xobj$DocumentXobj : invalid LineNumberTable pc at 27684
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at com.bea.xbean.store.Cur$Locations.<clinit>(Cur.java:482)
         at com.bea.xbean.store.Locale.<init>(Locale.java:168)
         at com.bea.xbean.store.Locale.getLocale(Locale.java:235)
    >
    <Jan 8, 2009 11:13:22 AM MDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
    <Jan 8, 2009 11:13:22 AM MDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
    <Jan 8, 2009 11:13:22 AM MDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>

    Hi Nicolas.
    What Weblogic 9.2 patch is it ?92MP3 no patches
    What Peopletools version is it ?849.09
    What OS ?Linux 2.6.9-67.0.20.ELsmp
    Is it crashed on the startup ? yes it fails when we try to startup the admin server
    let me know thanks

  • "illegal access to page" error?

    Received the following error message:
    Tue Oct 10 17:29:58 EDT 2000:<E> <ServletContext-General> Servlet failed with Exception
    java.lang.SecurityException: JspServiceManager - illegal access to page: /mailbeanservlet
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.RuntimeException.<init>(Compiled Code)
    at java.lang.SecurityException.<init>(Compiled Code)
    at com.beasys.commerce.axiom.jsp.JspServiceManager.service(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
    at weblogic.kernel.ExecuteThread.run(Compiled Code)
    ===================
    The following lines of code were used to set the action and the destination request parameter:
    <form action="<%=getTrafficURI(request)%>" method="POST">
    <input type=hidden name="<%=DESTINATION_TAG%>" value="/mailbeanservlet" >
    Any clues to this problem, or if additional information is needed, please let me know. Thanks in advance!

    Hello Santhana,
    The portals do not use
    com.beasys.commerce.foundation.flow.jsp.DefaultDestinationDeterminer, which is
    not really "webflow" because "webflow" is
    com.beasys.commerce.webflow.DestinationDeterminer, as used by the commerce JSP
    templates (see the APPLICATION_INIT property sets in the admin tool). The
    DefaultDestinationDeterminer will not let you go through the FlowManager
    servlet to a JSP page that is not below your portal workindir or repositorydir,
    as specified in your APPLICATION_INIT property set. This is for security
    reasons.
    You can implement your own destination determiner and register it with your
    APPLICATION_INIT property set if you need to.
    Ture Hoefner
    BEA Systems, Inc.
    2590 Pearl St.
    Suite 110
    Boulder, CO 80302
    www.bea.com

  • SharePoint Designer 2013 after installation getting error with runtime i.e. error writing to file Microsoft.SharePoint.Client.Runtime.Local.Resources.dll Verify that you have access to that directory

    SharePoint Designer 2013 after installation getting error with runtime i.e. error writing to file Microsoft.SharePoint.Client.Runtime.Local.Resources.dll Verify that you have access to that directory
    after retry..again SharePoint Designer requires the following component require to install Microsoft.NET framework version 4 i have downloaded and try to installed but fail not work please answer what to do?
    Thanks and Regards, Rangnath Mali

    Hi Rangnath,
    For running SharePoint Designer 2013, you need to install Microsoft .NET 4.0 Framework or higher.
    Please uninstall the Microsoft .NET 4.0 Framework, and install it again. After that, reboot your machine.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • HT3275 Hi, I have backed up 2 IMACs and one Mac Book Pro but for some reason, the 3rd IMAC come up with this problem: The backup disk image "/Volumes/Data/Anthony's iMac.sparsebundle" could not be accessed (error -1). Why? They computer system is up to da

    Hi, I have backed up 2 IMACs and one Mac Book Pro but for some reason, the 3rd IMAC come up with this problem: The backup disk image “/Volumes/Data/Anthony’s iMac.sparsebundle” could not be accessed (error -1). Why? The computer system is up to date and I have had no issue with the other computers, just this one.
    Many thanks
    Anthony

    Try this Discussion...
    https://discussions.apple.com/message/18783684#18783684

  • Error 500, deployment with struts

    An application developed in JDeveloper 9.02 with struts 1.1b works fine when running using the local OC4J instance running from JDeveloper. I created a deployment profile with a .war and .ear, deployed to the OC4J standalone instance using the EM website, and all seemed well. Now it sporadically gives the "Internal Server Error" when navigating between pages. I can't find anything in the logs, and ideas?

    It's OC4J core install for 9iAS Release 9.02. I've deployed to Solaris since there is a bug that can give this error that is patched for Solaris, but not Windows. The error occurs when navigating pages in a struts app. Sometimes it works fine, then you click on one of the image buttons to go to the next .jsp and this error comes up.
    Ruth
    What version of OC4J you are testing on ?
    Is it OC4J standalone or Oracle9iAS that you are using.
    more details would be helpful in diagnosing the problem.
    -Prasad

  • System Error:Database access error,rollback segment number with name "" too small

    Hi Experts,
    In SXMB_MONI  XML messages for File2File scenario are failing
    with the below message:
    Database access error
    com.sap.aii.utilxi.misc.api.ResourceException: ORA-01555: snapshot too
    old: rollback segment number with name "" too small ORA-22924: snapshot
    too old at com.sap.aii.utilxi.blob.api.AIIBlob.getByteArray
    (AIIBlob.java:85) at
    com.sap.aii.utilxi.blob.api.AIIBlobImpl.getByteArray
    (BlobServices.java:156)
    I have refered this link http://scn.sap.com/thread/3147106
    Kindly suggest,
    Gagan.

    This may be due memory issue on the server. refer the note/thread as
    http://scn.sap.com/thread/3456694
    3807  - Error messages regarding rollback and undo segments
    Regards
    Ramg

  • I have no more calendar synchronization with iCloud. when accessing to icloud account I cannot add an event on icloud calendar the message is :"server error"; any help?

    I have no more calendar synchronization with iCloud. when accessing to icloud account I cannot add an event on icloud calendar the message is :"server error"; any help?

    Tap the little claendar icon at the top left (next to the search icon) and see what calendars are set up in WeekCal.  If none are enabled, then enable the one(s) you want to use.

Maybe you are looking for