Tag Handler Class classpath

          Hi.
          I have some problems with Tag Handler Classes in custom tags. When tag handler
          class store in package all is OK - I place it's class-file in /WEB-INF/classes/%package-path%/%class-name%.class
          and in tld-file in <tagclass> write: %package-path%.%class-name%.
          When tag handler class don't store in package I place class-file in /WEB-INF/classes/%class-name%.class
          and in tld-file in <tagclass> write: %class-name%, but it's doen't work. When
          jsp starts I recieve:
          D:\bea\wlserver\config\mydomain\applications\.wl_temp_do_not_delete\WEB-INF\_tmp_war_myserver_myserver_CustomTag\jsp_servlet\_simpleexample.java:81:
          cannot resolve symbol
          symbol : class ExampleTag
          location: class jsp_servlet._simpleexample
          ExampleTag csajspexample0 = null;
          ^
          Why? Plese, help me.
          Igor
          

You probably should not use unnamed packages at all.
          Language spec specifically says that "Unnamed packages are provided by the
          Java platform principally for convenience when developing small or temporary
          applications or when just beginning development."
          Igor Vinnikov <[email protected]> wrote:
          > Hi.
          > I have some problems with Tag Handler Classes in custom tags. When tag handler
          > class store in package all is OK - I place it's class-file in /WEB-INF/classes/%package-path%/%class-name%.class
          > and in tld-file in <tagclass> write: %package-path%.%class-name%.
          > When tag handler class don't store in package I place class-file in /WEB-INF/classes/%class-name%.class
          > and in tld-file in <tagclass> write: %class-name%, but it's doen't work. When
          > jsp starts I recieve:
          > D:\bea\wlserver\config\mydomain\applications\.wl_temp_do_not_delete\WEB-INF\_tmp_war_myserver_myserver_CustomTag\jsp_servlet\_simpleexample.java:81:
          > cannot resolve symbol
          > symbol : class ExampleTag
          > location: class jsp_servlet._simpleexample
          > ExampleTag csajspexample0 = null;
          > ^
          > Why? Plese, help me.
          > Igor
          Dimitri
          

Similar Messages

  • How to submit a form in jsp from tag handler class

    I have a form in jsp.I created some more links in the tag handler class.Based on the link we click form action will take place.Now how can i submit the form in tag handler class for the links i created in that class.

    I have a form in jsp.I created some more links in the tag handler class.Based on the link we click form action will take place.Now how can i submit the form in tag handler class for the links i created in that class.

  • JSF 1.2 tag handler classes in JSF 1.1 environment

    Hi,
    I’m developing a JSF 1.2 application with RSA 7.5.1. When I run it in the WAS 6.1 I get the following exception:
    javax.servlet.ServletException:
    Unable to convert string '#{onebean.onestring}' to class
    javax.el.ValueExpression for attribute title:
    java.lang.IllegalArgumentException:
    Property Editor not registered with the PropertyEditorManager
    at org.apache.jasper.runtime.PageContextImpl.handlePageException
    (PageContextImpl.java:660)etc...
    I think my WAS 6.1 running environment doesn’t admit Tag Handler classes in JSF 1.2 style (you know: Extending UIComponentELTag, with all attributes in the tag class of type valueExpression along with setter methods...).
    In case this suspect is true, is there any tricky way to run this JSF 1.2 components in a JSF 1.1 environment?
    Do you have any ideas to solve this problem without downgrading my JSF tag handler classes from 1.2 to 1.1?
    Thanks a lot!

    Hi BalusC,
    This is the full history:
    I started coding the tag handler classes of my JSF components in the JSF 1.2 way.
    But know, I’am being forced to run the web app that uses those JSF 1.2 components in a WAS 6.1 (servlet 2.4 & jsp 2.0, I suppose).
    Not very elegant solution, I put a ‘servlet2.5-jsp2.1-api.jar’ file in my ‘WebContent\WEB-INF\lib’ directory, and configured a ‘PARENT-LAST’ class loader policy in the server configuration.
    This is my web.xml:
    <?xml version="1.0"?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
            http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         version="2.5">
       <servlet>
          <servlet-name>Faces Servlet</servlet-name>
          <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
          <load-on-startup>1</load-on-startup>
       </servlet>
       <servlet-mapping>
          <servlet-name>Faces Servlet</servlet-name>
          <url-pattern>*.faces</url-pattern>
       </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.html</welcome-file>
              <welcome-file>index.htm</welcome-file>
              <welcome-file>index.jsp</welcome-file>
              <welcome-file>default.html</welcome-file>
              <welcome-file>default.htm</welcome-file>
              <welcome-file>default.jsp</welcome-file>
         </welcome-file-list>
    </web-app>When I launch the JSF example page, I get no logs, no messages, ONLY a blank page (¿?)
    Thank you very much for your skilled help!

  • Java Bean access in a JSP Tag handler class

    Hello Everybody,
    I am trying to access my java bean(ErrorBean.java) in th doEndTag() method of the tag handler class(MyTagHandler.java) and iam getting an "CLASSCAST EXCEPTION"
    I am doing it like this in the tag handler class.
    MyBeans.ErrorBean errorBean = (MyBeans.ErrorBean)pageContext.getSession().getAttribute("ErrorBean");
    Where MyBeans is the package in which my Error Bean is and iam placing the ErrorBean object in the session object before it comes to the jsp page where i have the jsp Custom tag:
    <%@ taglib uri="/WEB-INF/taglib.tld" prefix="errors" %>
    <errors:message/>
    <%@ include file="footer.jsp"%>
    I was of the opinion that i was casting it right...can anyone help me to find ...where iam doing it wrong...its really URGENT ..PLEASE

    Friend that did not work either ...
    u know what...the ErrorTagHandler class is comiling fine with out errors but in the jsp page when the custom tag is hit..this error is showing up when i see the server log.
    can you throw some light on this..
    thanks..
    Firasath

  • Tool to downgrade Tag handler classes from JSF 1.2 to JSF 1.1

    Is there any tool to downgrade Tag handler classes from JSF 1.2 to JSF 1.1?
    thanks!

    I am not sure if I understand you, but what's wrong with just replacing the JAR files?

  • JWSDP Custom Tags (finding tag handler class)

    Hi,
    ive been using the Java Web Services Development Pack
    ive tried several examples of creating custom tags all seem to have different directory structures and none seem to work. Heres my setup...
    rootdir -> index.jsp
    rootdir -> WEB-INF -> web.xml
    rootdir -> WEB-INF -> tlds -> demo.tld (the tag library descriptor)
    rootdir -> WEB-INF -> classes -> demo -> tags -> Greeter.java (the tag handler class)
    there are some other folders created by deploytool but they are empty.
    heres demo.tld...
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>2.0</jsp-version>
    <short-name>demo</short-name>
    <uri>DemoTags</uri>
    <tag>
    <name>greeter</name>
    <tag-class>demo.tags.Greeter</tag-class>
    <body-content>empty</body-content>
    </tag>
    </taglib>
    here is the tag handler class Greeter.java...
    package demo.tags;
    import javax.servlet.jsp.tagext.*;
    import javax.servlet.jsp.*;
    public class Greeter extends SimpleTagSupport {
    public void doTag() throws JspException {
    PageContext pageContext = (PageContext) getJspContext();
    JspWriter out = pageContext.getOut();
    try {
    out.println("Hello World");
    } catch (Exception e) {
    // Ignore.
    and heres the code in index.jsp...
    <%@taglib prefix="t" uri="DemoTags" %>
    <t:greeter />
    Id love to know if these directory structures are fixed and where they are specified - its confusing the way so many examples show differences.
    this is the exception i get when trying to run index.jsp through the admin page (localhost:4848)
    org.apache.jasper.JasperException: /index.jsp(11,0) Unable to load tag handler class "demo.tags.Greeter" for tag "t:greeter"
    ----

    Sincere Apologies - It might be a good idea to compile my java files so i actually have classes in my classes directory !!
    i think a build.xml file is needed for ant to compile everything that is needed now.
    and the beat goes on !

  • Tag handler class was not found "org.apache.struts.taglib.tiles.InsertTag"

    Hi All,
    I have a proble deploying my app with struts 1.3.10, when I run under tomcat 6 on my eclipse, it´s fine, but when I deploy on weblogic send next exception:
    ####<Apr 2, 2013 4:24:19 PM CDT> <Info> <ServletContext-/slagentes> <DSWLC01K> <svr-slisto> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1364937859494> <BEA-000000> <layout.jsp:142:14: The tag handler class was not found "org.apache.struts.taglib.tiles.InsertTag".
    <tiles:insert attribute="content"/>
    ^----------^
    layout.jsp:142:14: The tag handler class was not found "org.apache.struts.taglib.tiles.InsertTag".
    <tiles:insert attribute="content"/>
    ^----------^
    >
    ####<Apr 2, 2013 4:24:19 PM CDT> <Error> <HTTP> <DSWLC01K> <svr-slisto> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1364937859499> <BEA-101017> <[ServletContext@159254910[app:slagentes module:/slagentes path:null spec-version:3.0], request: weblogic.servlet.internal.ServletRequestImpl@5ebf5ebf[
    POST /slagentes/login.do HTTP/1.1
    Connection: keep-alive
    Content-Length: 37
    Cache-Control: max-age=0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Origin: http://172.17.12.129:7004
    User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.43 Safari/537.31
    Content-Type: application/x-www-form-urlencoded
    Referer: http://172.17.12.129:7004/slagentes/
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: es-ES,es;q=0.8
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
    ]] Root cause of ServletException.
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /jsp/template/layout.jsp
    layout.jsp:142:14: The tag handler class was not found "org.apache.struts.taglib.tiles.InsertTag".
    <tiles:insert attribute="content"/>
    ^----------^
    layout.jsp:142:14: The tag handler class was not found "org.apache.struts.taglib.tiles.InsertTag".
    <tiles:insert attribute="content"/>
    ^----------^
    at weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessary(JavelinxJSPStub.java:225)
    at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:161)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:237)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:190)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:281)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:453)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:364)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:221)
    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:567)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:263)
    at org.apache.struts.tiles.commands.TilesPreProcessor.doForward(TilesPreProcessor.java:260)
    at org.apache.struts.tiles.commands.TilesPreProcessor.execute(TilesPreProcessor.java:217)
    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
    at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
    at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:751)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:221)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3284)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3254)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1513)
    at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    My weblogic.xml is
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app
         xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd">
         <wls:container-descriptor>
              <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
         </wls:container-descriptor>     
    </wls:weblogic-web-app>     
    and my weblogic-application.xml is
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <weblogic-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-application http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd"
         xmlns="http://www.bea.com/ns/weblogic/weblogic-application">
         <application-param>
              <param-name>webapp.encoding.default</param-name>
              <param-value>UTF-8</param-value>
         </application-param>
         <prefer-application-packages>
              <package-name>antlr.*</package-name>          
              <package-name>org.apache.*</package-name>          
              <package-name>javax.xml.rpc.*</package-name>
              <package-name>javax.xml.namespace.*</package-name>
              <package-name>javax.xml.messaging.*</package-name>
              <package-name>javax.xml.soap.*</package-name>
              <package-name>javax.servlet.jsp.jstl.*</package-name>
         </prefer-application-packages>
    </weblogic-application>
    please help me

    The struts-template tld has been deprecated in favour of the tiles taglib.
    If you are using anything above struts 1.0, then you should be using tiles.
    Most probably the support files for the struts-template taglib are not in your distribution.
    Cheers,
    evnafets

  • About the  Tag handler class

    hi,
    i created a tag handler source file.
    the following exception is thrown as given below
    C:\Tomcat 5.0\webapps\jsp-examples\WEB-INF\classes\Custom>javac ExampleTag.java
    ExampleTag.java:3: package javax.servlet.jsp does not exist
    import javax.servlet.jsp.*;
    ^
    ExampleTag.java:4: package javax.servlet.jsp.tagext does not exist
    import javax.servlet.jsp.tagext.*;
    ^
    ExampleTag.java:7: cannot find symbol
    symbol: class TagSupport
    public class ExampleTag extends TagSupport
    ^
    ExampleTag.java:13: cannot find symbol
    symbol : class JspWriter
    location: class Custom.ExampleTag
    JspWriter out = pageContext.getOut();
    ^
    ExampleTag.java:13: cannot find symbol
    symbol : variable pageContext
    location: class Custom.ExampleTag
    JspWriter out = pageContext.getOut();
    ^
    ExampleTag.java:20: cannot find symbol
    symbol : variable SKIP_BODY
    location: class Custom.ExampleTag
    return(SKIP_BODY);
    ^
    ExampleTag.java:20: illegal start of type
    return(SKIP_BODY);
    ^
    7 errors
    can anyone help me with the problem????????

    hi
    i compiled my tag handler class and stored the Source and class files in the WEB-INF\classes directory.
    i created a descriptor file and saved it in WEB-INF\jsp directory.
    i placed my jsp file in the jsp-examples folder.
    then i started the server and executed the jsp file.
    that time i was encountered with the following error.
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: File "/Custom/csajsp-taglib.tld" not found
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:404)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:202)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577)
         org.apache.jasper.compiler.Parser.parse(Parser.java:171)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:258)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:139)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    note The full stack trace of the root cause is available in the Tomcat logs.
    can you help me???????????????????

  • Accessing JSP Variables in Custom Tag Handler.

    Hi,
    I am creating a custom tag which builds a list view. I have certain String array in my JSP and I need to pass the same into my Tag Handler class. I tried following ways :
    1. In doStartTag() implementation I used
       public int doStartTag() {
             String[] myArray = (String[])pageContext.getAttribute("mystringarray", PageContext.PAGE_SCOPE;
       }This is not recognizing the String array variable defined in my JSP.
    2. I used separate attribute which is passed from the JSP to the custom tag as parameter having "rtexprvalue" as true. But I cann't pass a Sting array into my tag handler class. I can pass only String.
    How can I access variables which are defined in the JSP using declaration block. i.e.
    <%!
    String[] myArray = new String[100];
    %>
    Thanks for the time.

    You should be able to pass any type you like as an attribute to the tag.
    You just have to define its type as String[] in your tld:
    <attribute>
    <name>stringArray</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    <type>java.lang.String[]</type>
    </attribute>
    Alternatively, If you declare your array like:
    <%!
    String[] myArray = new String[100];
    %>You can do this:
    pageContext.setAttribute("mystringarray", myArray);
    which will put it into the page context for you to pick up in your custom tag.
    Hope this helps,
    evnafets

  • Error while running DocumentOutbox handler class in content DB Dev kit

    Hi,
    I am able to compile the DocumentOutbox content handler class which comes with content DB Dev kit. But, when I run scriptdriver.sh, I am getting the following errors in the log file "RegisterDocumentOutbox.out".
    Any help in resolving this would be appreciated
    Next method: setDefaultScriptOperationsClass oracle.ifs.ecm.tools.script.AuditSpecificationOperations
    Exception while invoking method 'setDefaultScriptOperationsClass oracle.ifs.ecm.tools.script.AuditSpecificationOperations' ; exception is:
    java.lang.RuntimeException: Unable to construct operations instance
    java.lang.RuntimeException: Unable to construct operations instance
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.setDefaultScriptOperationsClass(EcmScriptDriver.java:503)
         at oracle.ifs.ecm.tools.script.EcmScriptOperations.setDefaultScriptOperationsClass(EcmScriptOperations.java:522)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.invokeMethod(EcmScriptDriver.java:431)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.run(EcmScriptDriver.java:257)
         at oracle.ifs.ecm.tools.script.EcmDiffTest.main(EcmDiffTest.java:37)
    elapsed time (ms) = 7
    Next method: identifyByPath domain /oracle
    Exception while invoking method 'identifyByPath domain /oracle' ; exception is:
    java.lang.RuntimeException: Cannot register a null object (domain)
    java.lang.RuntimeException: Cannot register a null object (domain)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.registerObject(EcmScriptDriver.java:972)
         at oracle.ifs.ecm.tools.script.EcmScriptOperations.registerObject(EcmScriptOperations.java:9220)
         at oracle.ifs.ecm.tools.script.EcmScriptOperations.identifyByPath(EcmScriptOperations.java:4889)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.invokeMethod(EcmScriptDriver.java:431)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.run(EcmScriptDriver.java:257)
         at oracle.ifs.ecm.tools.script.EcmDiffTest.main(EcmDiffTest.java:37)
    elapsed time (ms) = 69
    Next method: defineAuditTypeListDefinition atl
    Exception while invoking method 'defineAuditTypeListDefinition atl' ; exception is:
    java.lang.RuntimeException: No such method with specified number of arguments (1)
    java.lang.RuntimeException: No such method with specified number of arguments (1)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.invokeMethod(EcmScriptDriver.java:423)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.run(EcmScriptDriver.java:257)
         at oracle.ifs.ecm.tools.script.EcmDiffTest.main(EcmDiffTest.java:37)
    elapsed time (ms) = 0
    Next method: addAuditType atl DOCUMENT_CREATED SUCCESS_ONLY
    Exception while invoking method 'addAuditType atl DOCUMENT_CREATED SUCCESS_ONLY' ; exception is:
    java.lang.RuntimeException: No such method with specified number of arguments (3)
    java.lang.RuntimeException: No such method with specified number of arguments (3)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.invokeMethod(EcmScriptDriver.java:423)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.run(EcmScriptDriver.java:257)
         at oracle.ifs.ecm.tools.script.EcmDiffTest.main(EcmDiffTest.java:37)
    elapsed time (ms) = 1
    Next method: addAuditType atl DOCUMENT_CREATED_AS_COPY SUCCESS_ONLY
    Exception while invoking method 'addAuditType atl DOCUMENT_CREATED_AS_COPY SUCCESS_ONLY' ; exception is:
    java.lang.RuntimeException: No such method with specified number of arguments (3)
    java.lang.RuntimeException: No such method with specified number of arguments (3)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.invokeMethod(EcmScriptDriver.java:423)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.run(EcmScriptDriver.java:257)
         at oracle.ifs.ecm.tools.script.EcmDiffTest.main(EcmDiffTest.java:37)
    elapsed time (ms) = 3
    Next method: addAuditType atl DOCUMENT_BECAME_VERSION SUCCESS_ONLY
    Exception while invoking method 'addAuditType atl DOCUMENT_BECAME_VERSION SUCCESS_ONLY' ; exception is:
    java.lang.RuntimeException: No such method with specified number of arguments (3)
    java.lang.RuntimeException: No such method with specified number of arguments (3)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.invokeMethod(EcmScriptDriver.java:423)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.run(EcmScriptDriver.java:257)
         at oracle.ifs.ecm.tools.script.EcmDiffTest.main(EcmDiffTest.java:37)
    elapsed time (ms) = 0
    Next method: addAuditType atl USER_APPLICATION_CONNECTED SUCCESS_ONLY
    Exception while invoking method 'addAuditType atl USER_APPLICATION_CONNECTED SUCCESS_ONLY' ; exception is:
    java.lang.RuntimeException: No such method with specified number of arguments (3)
    java.lang.RuntimeException: No such method with specified number of arguments (3)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.invokeMethod(EcmScriptDriver.java:423)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.run(EcmScriptDriver.java:257)
         at oracle.ifs.ecm.tools.script.EcmDiffTest.main(EcmDiffTest.java:37)
    elapsed time (ms) = 1
    Next method: defineAuditTargetSpecificationDefinition ats domain ALL_SUBITEMS
    Exception while invoking method 'defineAuditTargetSpecificationDefinition ats domain ALL_SUBITEMS' ; exception is:
    java.lang.RuntimeException: No such method with specified number of arguments (3)
    java.lang.RuntimeException: No such method with specified number of arguments (3)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.invokeMethod(EcmScriptDriver.java:423)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.run(EcmScriptDriver.java:257)
         at oracle.ifs.ecm.tools.script.EcmDiffTest.main(EcmDiffTest.java:37)
    elapsed time (ms) = 0
    Next method: defineAuditHandlerSpecificationDefinition ahs oracle.ifs.examples.handlers.DocumentOutbox 1H 00:30:00 true
    Exception while invoking method 'defineAuditHandlerSpecificationDefinition ahs oracle.ifs.examples.handlers.DocumentOutbox 1H 00:30:00 true' ; exception is:
    java.lang.RuntimeException: No such method with specified number of arguments (5)
    java.lang.RuntimeException: No such method with specified number of arguments (5)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.invokeMethod(EcmScriptDriver.java:423)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.run(EcmScriptDriver.java:257)
         at oracle.ifs.ecm.tools.script.EcmDiffTest.main(EcmDiffTest.java:37)
    elapsed time (ms) = 0
    Next method: createAuditSpecification DocOutboxSpec atl ats ahs "DocumentOutbox AuditSpecification"
    Exception while invoking method 'createAuditSpecification DocOutboxSpec atl ats ahs "DocumentOutbox AuditSpecification"' ; exception is:
    java.lang.RuntimeException: No such method with specified number of arguments (5)
    java.lang.RuntimeException: No such method with specified number of arguments (5)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.invokeMethod(EcmScriptDriver.java:423)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.run(EcmScriptDriver.java:257)
         at oracle.ifs.ecm.tools.script.EcmDiffTest.main(EcmDiffTest.java:37)
    elapsed time (ms) = 0
    Next method: showAuditSpecification DocOutboxSpec
    Exception while invoking method 'showAuditSpecification DocOutboxSpec' ; exception is:
    java.lang.RuntimeException: unknown object tag: DocOutboxSpec
    java.lang.RuntimeException: unknown object tag: DocOutboxSpec
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.lookupObject(EcmScriptDriver.java:857)
         at oracle.ifs.ecm.tools.script.EcmScriptOperations.lookupObject(EcmScriptOperations.java:9140)
         at oracle.ifs.ecm.tools.script.EcmScriptOperations.showAuditSpecification(EcmScriptOperations.java:1572)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.invokeMethod(EcmScriptDriver.java:431)
         at oracle.ifs.ecm.tools.script.EcmScriptDriver.run(EcmScriptDriver.java:257)
         at oracle.ifs.ecm.tools.script.EcmDiffTest.main(EcmDiffTest.java:37)
    elapsed time (ms) = 1
    Thanks in Advance

    A parent folder must have set workflow configuration to be final - thus preventing any sub-folders from changing the policy.
    Work your way through the various parent folders (via Web UI), and ensure "Do not allow subfolders to modify this operation's workflow settings" for the particular workflow/operation combination is not set.
    Matt.

  • Sending value to JSP page from Tag Handler

    Is there some reason why a call to setAttribute inside a Body tag handler would not succeed in making visible a variable outside the scope of the tag? I mean a situation like this:
    <% String p=request.getParameter("p"); %>
    <taglib:tag count="<%= p %>">
    ...body which handler fills in...
    </taglib:tag>
    <form action="thispage.jsp?p=<% newcount %>">
    <input type=submit>
    </form>
    Assume that "count" and "newcount" are defined in the Tag Extra Info class for this handler and that TLD allows a run time evaluation of the "count" attribute.
    (The idea here is to have the handler recall the same jsp file with an incremented counter.)
    Some other way to do this?
    Thanks,
    Alan

    Never mind... I see that I forgot to set the scope of the scripting variable to AT_END in the "Handler Extra Info" class.

  • Finding the custom tag name from inside the tag handler

    Hello,
    I searched the forum, but couldnt find the answer (or in the API). In my custom tag handler, I want to know what the name of the custom tag was. Is this possible?
    Thanks in advance.
    Chris
    ps. Without parsing the .tld file... :)

    Hmm, that's unfortunate. Thanks a lot for your work. I had a feeling since it wasn't in the API that it wasn't possible. Here's why, and maybe they will add this feature later...
    We are making our own tags for buttons on our app (the button will be an HTML table, with a clickable background, that looks like an image, but isnt).
    The HTML designers want tags they can drag and drop to the screen in DreamWeaver, including visual feedback on what they dragged and dropped. So the tag <fast:blueButton>Continue</fast:blueButton> will show a blue button image in dreamWeaver with "Continue" as the text. There are a lot of parameters to set for each button, like height, width, border, etc. that will be configured in an XML config file for each button.
    It would be nice if all the buttons we invent in the tld point to the same generic button class, and when the generic button class runs, sees which button called it, and gets its config from an XML file.
    This way the designer could add more buttons with the tld and XML config, and no more java classes are needed. However, if a generic button is sent with a type param: <fast:button type="blue">Continue</fast:button> then there is no visual feedback in the tool (in the first case we could have set the fast:blueButton to be the image of a blue button) and it cant be picked from a list in the tool (the designer needs to remember which types exist). It seems not important to programmers, but for designers it is important.
    Oh well, I will see if there is another way to NOT have tons of Java classes to support.
    Thanks,
    Chris

  • Exception Description: Unable to process XML tag [driver-class] with value

    Hi
    I'm newbie with TopLink. I try to write a litle application with TopLink:
    - First, I create a session.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink-sessions version="11g Technology Preview 3 (11.1.1.0.0)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="database-session">
    <name>dbsession</name>
    <event-listener-classes/>
    <logging xsi:type="toplink-log"/>
    <primary-project xsi:type="xml">META-INF/tlMap.xml</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <user-name>dev</user-name>
    <password>F6A3DA7BA187330D4E11A713C42FF833</password>
    <sequencing>
    <default-sequence xsi:type="table-sequence">
    <name>Default</name>
    </default-sequence>
    </sequencing>
    <driver-class>oracle.jdbc.OracleDriver</driver-class>
    <connection-url>jdbc:oracle:thin:@//10.10.10.31:1521/devdb1</connection-url>
    <bind-all-parameters>false</bind-all-parameters>
    <struct-converters/>
    </login>
    </session>
    </toplink-sessions>
    - Second, I create a Java Application ( Application1.java):
    package project2;
    import java.sql.ResultSet;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.Vector;
    import oracle.toplink.queryframework.DataModifyQuery;
    import oracle.toplink.queryframework.SQLCall;
    import oracle.toplink.queryframework.StoredProcedureCall;
    import oracle.toplink.sessions.DatabaseSession;
    import oracle.toplink.sessions.Session;
    import oracle.toplink.tools.sessionconfiguration.XMLSessionConfigLoader;
    import oracle.toplink.tools.sessionmanagement.SessionManager;
    import oracle.toplink.util.SessionFactory;
    public class Application1 {
    public Application1() {
    public static void main(String[] args) {
    // new Application1();
    String statement = "SELECT motdepasse,login FROM bou_courtier";
    SessionManager sessionmanager = SessionManager.getManager();
    System.out.println("test");
    // SessionFactory sessionfactory = new SessionFactory("META-INF/sessions.xml","dbsession");
    DatabaseSession session = (DatabaseSession)sessionmanager.getSession(new XMLSessionConfigLoader(),"dbsession",Thread.currentThread().getContextClassLoader());
    // Session session = sessionfactory.acquireSession();
    System.out.println("test");
    SQLCall sqlcall = new SQLCall(statement);
    session.executeNonSelectingCall(sqlcall);
    ResultSet rs = sqlcall.getResult();
    try {
    while(rs.next()){
    String strPass = rs.getString(1);
    String strLogin = rs.getString(2);
    System.out.println("Password :"+strPass+"---"+"Login :"+strLogin);
    } catch (SQLException e) {
    // TODO
    - Third, I build and run Application1.java in Jdevelopper 11g preview 3. Sadly, the result is a error:
    Exception in thread "main" Local Exception Stack:
    Exception [TOPLINK-9003] (Oracle TopLink - 11g Technology Preview 3 (11.1.1.0.0) (Build 071207)): oracle.toplink.exceptions.SessionLoaderException
    Exception Description: Unable to process XML tag [driver-class] with value [oracle.jdbc.OracleDriver].
    Internal Exception: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
         at oracle.toplink.exceptions.SessionLoaderException.failedToLoadTag(SessionLoaderException.java:83)
         at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildDatabaseLoginConfig(TopLinkSessionsFactory.java:408)
         at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildLogin(TopLinkSessionsFactory.java:336)
         at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildDatabaseSessionConfig(TopLinkSessionsFactory.java:182)
         at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildSession(TopLinkSessionsFactory.java:168)
         at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildTopLinkSessions(TopLinkSessionsFactory.java:117)
         at oracle.toplink.tools.sessionconfiguration.XMLSessionConfigLoader.load(XMLSessionConfigLoader.java:239)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:448)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:311)
         at project2.Application1.main(Application1.java:33)
    Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         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 oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildDatabaseLoginConfig(TopLinkSessionsFactory.java:405)
         ... 8 more
    Process exited with exit code 1.
    Can you help me to debug this error. Many thanks
    user615555

    The internal error: "java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver"
    is stating it can't find your driver jar file on the classpath. You'll need to check that you've included your Database driver in the list of libraries on your classpath.
    Best Regards,
    Chris

  • Random numbers, whithin a button handler class

    For my last project I need to create a program that opens a window with 10 text boxes, all displaying "0" at first and a button labled New Numbers. When this button is pushed it needs to generate random numbers within all of the text fields. I have been able to create one that has the text boxes and the button, but in the button handler class the random numbers will not generate properly.I figured that if I could get the button handler class to at least change just the first text field then I would be able to get the rest, but I can't even seem to get that far. Below is what I have so far, any help or guidence would really be appreciated.. Thanks
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Program6
         public static void main(String [] args)
              MyFrame frame = new MyFrame("Alan Jackson - Program 6");
              frame.pack();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setVisible(true);
    class MyFrame extends JFrame
         JTextField [] txt = new JTextField[10];
         JButton btnNewNumbers;
         public MyFrame(String S)
              super(S);
              setLayout(new FlowLayout());
              btnNewNumbers = new JButton("New Numbers");
              int i = 0;
              while(i<10)
                   txt[i] = new JTextField("0",12);
                   add(txt);
                   i++;
              add (btnNewNumbers);     
              btnNewNumbers.addActionListener(new ButtonHandler());
              class ButtonHandler implements ActionListener
                   public void actionPerformed(ActionEvent random)
                        txt[0].setText((int) (Math.random() * 100 +1));                    

    Next time, please use CODE tags, to post your code.
    class MyFrame extends JFrame{
         JTextField [] txt = new JTextField[10];
         JButton btnNewNumbers;
         public MyFrame(String S){
              super(S);
              setLayout(new FlowLayout());
              btnNewNumbers = new JButton("New Numbers");
              int i=0;
              while(i<10){
                   txt[i] = new JTextField("0",12); //<<<<< changed
                   add(txt);
                   i++;
              add (btnNewNumbers);
              btnNewNumbers.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent random){
                        for(int i = 0; i< 10; i++){
                             txt[i].setText(Integer.toString((int) (Math.random() * 100 +1)));

  • Resource injection in tag handler

    I can't seem to find a straight answer for this anywhere. Using release 9.1 of the Sun Application Server, should resource injection in a tag handler be working? Tak something really simple like this:
    public class TestHandler extends SimpleTagSupport {
        @EJB SomeEJBLocal beanInstance;
        public void doTag() throws JspException {
    } When I try this, beanInstance is null. Is this a configuration issue or does this just not work yet?

    Found the answer myself. When the web module was being ported over, the web.xml was copied as-is. It still had version 2.4 as an attribute to the web-app element. Changing the attributes to match a newly created 2.5 version fixed the problem.

Maybe you are looking for

  • So, I eareased my Disk because it couldn't get repaired. I wanted to "Reinstall OS X Mavericks" to my Macbook. Didn't work.

    Okay so I don't know what to do. I was hoping that after I erased my messed up disk, my computer would be like a new one and I would be able to use it, but all my data would be lost (did a backup before). So I did that, and now I try Reinstalling OS

  • How soon did your iPhone ship?

    Hi, For those of you who ordered the new iPhone (5) during the "available 3-4 weeks" how long after you've place the order did your iPhone ship? Reason I'm asking this is because I've read from numerous (trusted) sources that the "big three" in the U

  • How to update correctly a UDT at FORM_DATA_ADD

    Hi, When adding an item marketing document, my add-on has to update a UDT with all the lines in the document. I have placed the update of this UDT in the BeforeAction == false and ActionSuccess is true on et_FORM_ADD_DATE. But what if an error messag

  • Mobility groups, failover across different subnets

    I've been reading up on 5.1 and am wondering how and if actual failover across subnets is an option. I understand the roaming of clients from controllers in the same MG on diff subnets. How does it work if your primary "anchor" isn't alive to replica

  • How could I get unix shell variable value?

    I want to get a unix shell variable value because I will use it in my java program. For example $HOME, I have wrote like below, Runtime runtime = Runtime.getRuntime(); Process proc = runtime.exec("echo $HOME"); But I could not get $HOME value, just g