Nested JSP tags not working in Weblogic 8.1/6.1

Hi,
          I have a custom JSP tag which are used to display buttons (like Submit, Cancel, Revert, Previous etc) on a web page.
          This custom tag has a structure like
          <gui:toolBar>
          <gui:toolTemplate>...</gui:toolTemplate>
          <gui:button>
          <gui:buttonImg>...</gui:buttonImg>
          <gui:buttonAlt>...</gui:buttonAlt>
          </gui:button>
          </gui:toolBar>
          The <gui:button> tag can be repeated depending on the number of buttons needed to be displayed. The body content of the <gui:button> nested tags are used to populate the values in the <gui:toolTemplate/>.
          The issue is that if I have repetitive <gui:button> tags(meaning if I want to have 2 or more buttons), the page does not get compiled in Weblogic (both 6.1 and 8.1).
          But the same works fine in Websphere 4.x and 5.1.
          There are no exceptions being thrown and hence no clue as to what is the issue.
          If I have only one <gui:button> then it works fine even in Weblogic.
          Note: A link on a similar problem(but no soluton mentioned) is
          http://forums.bea.com/bea/thread.jspa?forumID=2025&threadID=200074523&messageID=202373683&start=-1#202373683
          Please advice.
          Sriram.C.S

You're right, your situation is very similar to the situation the other poster describes. However, the main similarity is that neither of you have given us any information about what is going wrong. We can't read minds or read what's on your screen. We need to see specific error messages, stack traces, and specific code that shows what you are trying to do.
          However, it's likely that you're running into problems with the issues with "tag reuse" and "tag pooling". You should first read the JSP specification in the areas that talk about this issue, although this will probably leave you with more questions than you started with.
          I'm guessing that your "<gui:button>" element doesn't have any attributes. It's possible that WebLogic is reusing a single "<gui:button>" tag instance for each occurrence in your page. You may have to figure out how to turn off tag pooling in the JSP compiler, but I'm not sure how to do that.
          It's possible that Websphere doesn't give you an issue with this because perhaps they didn't bother with the tag pooling optimization (it is a good thing to have it available).

Similar Messages

  • Pdk struts jsp tags not working.

    The problem we have hited is that pdk-struts tags are not rendered corectly:
    From next piece of code:
    <pdk-html:form action="/auth_portlet/doLogin.do" name="loginFormBean" type="passport_portlets.auth_portlet.loginFormBean">
    <%--<pdk-html:errors/>--%>
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>Username:</td>
        <td><pdk-html:text property="username"/></td>
    </tr>
    <tr>
        <td>Password:</td>
        <td><pdk-html:text property="password"/></td>
    </tr>
    <tr>
        <td></td>
        <td><pdk-html:submit value="Login"/></td>
    </tr>
    </table>
    </pdk-html:form>We recieve next output in the browser window:
    <form name="loginFormBean" method="post" action="/passport_portlets/auth_portlet/doLogin.do">
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>Username:</td>
        <td><input type="text" name="username" value=""></td>
    </tr>
    <tr>
        <td>Password:</td>
        <td><input type="text" name="password" value=""></td>
    </tr>
    <tr>
        <td></td>
        <td><input type="submit" value="Login"></td>
    </tr>
    </table>
    </form>But it's wrong output, there aren't any qualifiing naming prossed, as much as no hidden fields included into form. We don't receive any kind of errors, just such simple output in browser.

    to be more detailed and specific, source follows
    provider.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
       <session>true</session>
       <passAllUrlParams>false</passAllUrlParams>
       <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
          <id>1</id>
          <name>AuthPortlet</name>
          <title>portlet name</title>
          <description>description</description>
          <timeout>40</timeout>
          <showEditToPublic>false</showEditToPublic>
          <hasAbout>false</hasAbout>
          <showEdit>false</showEdit>
          <hasHelp>false</hasHelp>
          <showEditDefault>false</showEditDefault>
          <showDetails>false</showDetails>
          <renderer class="oracle.portal.provider.v2.render.RenderManager">
             <renderContainer>true</renderContainer>
             <renderCustomize>true</renderCustomize>
             <autoRedirect>true</autoRedirect>
             <contentType>text/html</contentType>
             <showPage class="oracle.portal.provider.v2.render.http.StrutsRenderer">
             <defaultAction>/auth_portlet/doDefault.do</defaultAction>
             </showPage>
          </renderer>
       </portlet>
    </provider>
    web.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
        <description>web.xml file for passport portlets package</description>
      <context-param>
        <param-name>oracle.portal.log.LogLevel</param-name>
        <param-value>4</param-value>
      </context-param>
      <servlet>
        <servlet-name>SOAPServlet</servlet-name>
        <servlet-class>oracle.webdb.provider.v2.adapter.SOAPServlet</servlet-class>
      </servlet>
      <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
          <param-name>config</param-name>
          <param-value>/WEB-INF/struts-config.xml</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
        <servlet-name>SOAPServlet</servlet-name>
        <url-pattern>/providers</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>SOAPServlet</servlet-name>
        <url-pattern>/providers/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
      </servlet-mapping>
        <session-config>
            <session-timeout>35</session-timeout>
        </session-config>
        <mime-mapping>
            <extension>html</extension>
            <mime-type>text/html</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>txt</extension>
            <mime-type>text/plain</mime-type>
        </mime-mapping>
    </web-app>
    struts-config.xml
    <?xml version="1.0" encoding="windows-1251" ?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
      <form-beans>
        <form-bean name="loginFormBean"
                   type="passport_portlets.auth_portlet.loginFormBean">
          <form-property name="username" type="java.lang.String"/>
          <form-property name="password" type="java.lang.String"/>
        </form-bean>
      </form-beans>
      <action-mappings>
        <action path="/auth_portlet/doDefault"
                type="passport_portlets.auth_portlet.doDefaultAction">
          <forward name="loged" path="/auth_portlet/showLoginState.jsp" redirect="true"/>
          <forward name="notloged" path="/auth_portlet/showLoginForm.jsp" redirect="true"/>
        </action>
        <action path="/auth_portlet/doLogin"
                type="passport_portlets.auth_portlet.doLoginAction"
                name="loginFormBean"
                scope="request"
                validate="true"
                input="/auth_portlet/showLoginForm.jsp">
          <forward name="success" path="/auth_portlet/showLoginState.jsp" redirect="true"/>
          <forward name="failure" path="/auth_portlet/showLoginForm.jsp" redirect="true"/>
        </action>
      </action-mappings>
      <message-resources parameter="passport_portlets.ApplicationResources"/>
    </struts-config>
    showLoginForm.jsp
    <%@ page contentType="text/html;charset=windows-1251"%>
    <%@ taglib uri="http://xmlns.oracle.com/portal/pdk/struts/tags-html" prefix="pdk" %>
    <pdk:xhtml/>
    <pdk:form action="/auth_portlet/doLogin.do" name="loginFormBean" type="passport_portlets.auth_portlet.loginFormBean" method="post">
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>Username:</td>
        <td><pdk:text property="username"/></td>
    </tr>
    <tr>
        <td>Password:</td>
        <td><pdk:text property="password"/></td>
    </tr>
    <tr>
        <td></td>
        <td><pdk:submit value="Login"/></td>
    </tr>
    </table>
    </pdk:form>all works fine, except the problem that pdk-struts tags in jsp page aren't processed correctly, they output simple html output, which is not formated to inline rendering rules (qualified naming of fields, hidden fields with all values, etc).
    Maybe I'm missing something?

  • OC4J JSP Debugging not working for all the jsps

    Hi,
    Initially I was not able to debug jsps using Eclipse and OC4J. The jsp debugging started working once I made the below changes:
    1) global-web-application.xml is modified
    Changed the attribute development="true" in orion-web-app
    Added the below init param for the JspServlet
    <init-param>
    <param-name>debug</param-name>
    <param-value>class</param-value>
    </init-param>
    If the jsps are present in a sub directory under the webcontent none of the breakpoints are working. I am still be able to view the jsp pages on the browser.
    Tools: Oracle 10g Application Server Standalone version(10.1.3.5.0), JDK5, Windows XP, Eclipse Indigo
    Project Structure:
    Test (Eclipse Dynamic Web Project)
    -WebContent
    Sample.jsp ( Breakpoints are working)
    -subF (Folder)
    SubSample.jsp (Breakpoints are not working)
    -WEB-INF
    web.xml
    Debugging worked for http://localhost:8888/Test/Sample.jsp
    Debugging not working for http://localhost:8888/Test/subF/SubSample.jsp
    Any help is highly appreciated.
    Regards
    Danny

    This tells there is not enough main memory (not disk space) for the program to run.
    - You can look the dump in ST22, it will have suggestions on increasing the ROLLAREA??, you can forward that to Basis.
    - Most likely you will not have any more memory to assign so the above may not be feasible. Try to rework your query so it works with less data.

  • Response.sendRedirect("abc.jsp") is not  working

    Hello,
    I deployed my web application(jsp with business components) on AS 902.
    Web cache is running on port 80.
    Apache is running on 7778.
    To pass request i use,
    mod_proxy.c in http.conf. and
    <virtual host> for my application, to get required url.
    It is running fine, But response.sendRedirect("abc.jsp") is not working properly. It redirects the request to apache directly and skips web-cache. Also it changes url for the page given in method.
    While the same application was running ok on v 10222a. That version handle this method properly.
    how to remove this error ???
    Plz hurry up. Our product is ready for launching on 9iAS. It is final testing.
    Thnx.

    Tahir,
    What is the exact error message you are hitting.
    Are you able to use web-cache with other examples.
    Can you try testing it the the webcache demos that are part of ojspdemos.ear under /j2ee/home/demo.
    -Prasad

  • Jsp:useBean  not work when I install aplication!!

    Hi
    I developing an application with UIX JSP on Jdeveloper 9.0.2 and i using something like this:
    <jsp:useBean id="cbean" class="oracle.jsp.dbutil.ConnBean" scope="session" />
    <jsp:setProperty name="cbean" property="dataSource" value="jdbc/BiblosConnectionCoreDS" />
    </jsp:useBean>
    <%
    try{
    cbean.connect();
    This code work fine in standalone mode, but when i install this application on 9IAS, with an archive War, the code <jsp:useBean, not work.
    What is missing for? o What is the reason for this situation
    Thanks for some help?

    many thanks for your reply, and I have download new updates driver from your website (http://consumersupport.lenovo.com/en/DriversDownloads/drivers_show_890.html) and Installer it on my Y410 but it still does not work!!!
    the firstly: when I star up with win7, I can see a speaker icon right down near the clock, when I click mouse on it, I can see: Volume Mixer - Speaker with Device(Speaker Hight definition Audio Device, Digital Audio(S/PDIF) ( Hight definition Audio Device) ).
    Look in devicemanger I can see "Sound , video and game controll " has already installer with 'Hight definition Audio Device ' & 'Unimodem Hafl-Duplex Audio Device' below... but I cannot hear the sound when I play music, video, games...etc...
    the second: when laptop wakeup after 'sleep' mode, I can hear sound on speaker! but headphone jack does not work when I plug my headphone jack into it (I cannot hear sound with headphone), however I still hear sound from speaker, in this case!  
    Can you help me or tell me how I can do ?!
    Thanks and Best Regards,
    jupitervn

  • ScriptLink tag not working for application page sharepoint 2010

    <ScriptLink> tag not working for application page sharepoint 2010 for including javascript in application page, it appends either 1033 or _layout to path specified for javascript.But javascripts are located in custom document library on site and not
    in _layouts folder.
    Please help and explain in details as I tried lot on this.

    Hi,
    Use the following line of code
    <SharePoint:Scriptlink runat="server" Name="~sitecollection/Style Library/[YOUR SITE]/js/functions.js" Language="javascript" />
    Thanks,
    Vivek
    Please vote or mark your question answered, if my reply helps you

  • [svn] 3921: Fix for - @inheritDoc tag not working for get/ set overrides when you only override the setter of a base class

    Revision: 3921
    Author: [email protected]
    Date: 2008-10-28 06:23:00 -0700 (Tue, 28 Oct 2008)
    Log Message:
    Fix for - @inheritDoc tag not working for get/set overrides when you only override the setter of a base class
    QE Notes: Baselines for framework test will need to be updated.
    Doc Notes: None
    Reviewer: Paul
    Bugs: SDK-17304
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17304
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ASDocExtension.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ClassTable.java

    Revision: 3921
    Author: [email protected]
    Date: 2008-10-28 06:23:00 -0700 (Tue, 28 Oct 2008)
    Log Message:
    Fix for - @inheritDoc tag not working for get/set overrides when you only override the setter of a base class
    QE Notes: Baselines for framework test will need to be updated.
    Doc Notes: None
    Reviewer: Paul
    Bugs: SDK-17304
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17304
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ASDocExtension.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ClassTable.java

  • Custom taglib with nested tag not working

    Hi everybody,
    I have a question concerning a custom taglib. I want to create a tag with nested child tags. The parent tag is some kind of iterator, the child elements shall do something with each iterated object. The parent tag extends BodyTagSupport, i have overriden the methods doInitBody and doAfterBody. doInitBody initializes the iterator and puts the first object in the pageContext to be used by the child tag. doAfterBody gets the next iterator object and puts that in the pageContext, if possible. It returns with BodyTag.EVAL_BODY_AGAIN when another object is available, otherwise BodyTag.SKIP_BODY.
    The child tag extends SimpleTagSupport and does something with the given object, if it's there.
    In the tld-file I have configured both tags with name, class and body-content (tagdependent for the parent, empty for the child).
    The parent tag is being executed as I expected. But unfortunately the nested child tag does not get executed. If I define that one outside of its parent, it works fine (without object, of course).
    Can somebody tell me what I might have missed? Do I have to do something special with a nested tag inside a custom tag?
    Any help is greatly appreciated!
    Thanks a lot in advance!
    Greetings,
    Peter

    Hi again,
    unfortunately this didn't work.
    I prepared a simple example to show what isn't working. Perhaps it's easier then to show what my problem is:
    I have the following two tag classes:
    public class TestIterator extends BodyTagSupport {
        private Iterator testIteratorChild;
        @Override
        public void doInitBody() throws JspException {
            super.doInitBody();
            System.out.println("TestIterator: doInitBody");
            List list = Arrays.asList(new String[] { "one", "two", "three" });
            testIteratorChild = list.iterator();
        @Override
        public int doAfterBody() throws JspException {
            int result = BodyTag.SKIP_BODY;
            System.out.println("TestIterator: doAfterBody");
            if (testIteratorChild.hasNext()) {
                pageContext.setAttribute("child", testIteratorChild.next());
                result = BodyTag.EVAL_BODY_AGAIN;
            return result;
    public class TestIteratorChild extends SimpleTagSupport {
        @Override
        public void doTag() throws JspException, IOException {
            super.doTag();
            System.out.println(getJspContext().getAttribute("child"));
            System.out.println("TestIteratorChild: doTag");
    }The Iterator is the parent tag, the Child shall be shown in each iteration. My taglib.tld looks like the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <taglib
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee web-jsptaglibrary_2_1.xsd"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1">
         <tlib-version>1.0</tlib-version>
         <short-name>cms-taglib</short-name>
         <uri>http://www.pgoetz.de/taglibs/cms</uri>
         <tag>
              <name>test-iterator</name>
              <tag-class>de.pgoetz.cms.taglib.TestIterator</tag-class>
              <body-content>tagdependent</body-content>
         </tag>
         <tag>
              <name>test-iterator-child</name>
              <tag-class>de.pgoetz.cms.taglib.TestIteratorChild</tag-class>
              <body-content>empty</body-content>
         </tag>
    </taglib>And the snippet of my jsp is as follows:
         <!-- TestIterator -->
         <cms:test-iterator>
              <cms:test-iterator-child />
         </cms:test-iterator>The result is that on my console I get the following output:
    09:28:01,656 INFO [STDOUT] TestIterator: doInitBody
    09:28:01,656 INFO [STDOUT] TestIterator: doAfterBody
    09:28:01,656 INFO [STDOUT] TestIterator: doAfterBody
    09:28:01,656 INFO [STDOUT] TestIterator: doAfterBody
    09:28:01,656 INFO [STDOUT] TestIterator: doAfterBody
    So the child is never executed.
    It would be a great help if anybody could tell me what's going wrong here.
    Thanks and greetings from germany!
    Peter
    Message was edited by:
    Peter_Goetz

  • jsp:include is not working on weblogic

    I have a problem I write the following code
    html>
    <head>
    <script LANGUAGE="javascript" SRC="js/tab.js"></script>
    <LINK href="stylesheets/global.css" type=text/css rel=stylesheet>
    <title>JobSpinner Status</title>
    </head>
    <body class="bodymargin" onload="setpage(1)">
    <jsp:include flush="true" page="JobSpinnerTab.jsp"></jsp:include>
    <form id="loginForm" action="/jobspinner/JobStatus.faces" method="post">
    <input type="hidden" name="loginForm" value="loginForm" />
    <nobr>
    It is working fine on four to five PC we have checked .
    But the problem is that it is not working on a particular weblogic Server 8.1 SP2 .
    Can someone help me .
    Regs
    Amit Verma

    Are other JSP tags working on the page?
    eg
    Server info = <%= application.getServerInfo() %> <br>
    Servlet engine version = <%=  application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>
    Java version = <%= System.getProperty("java.vm.version") %><br>
    Java home = <%= System.getProperty("java.home") %><br>Your page might be being interpreted as HTML rather than passed through the JSP engine.

  • JSP-Editor not working properly

    Hi everybody,
    I am working with ISA5.0 and NWDI. I have checked out the Web-Module Project crm/isa/web/b2b.
    Now I would like to modify JSP-Files. Unfortonately the JSP-Editor is not working properly.
    The JSP-Editor cannot resolve references to Tag-Libraries like
    <%@ taglib uri="/isa" prefix="isa" %>
    Furthermore I get Errors with JSP-Includes
    <%@ include file="checksession.inc" %>
    The JSP-Editor does not show any other compile errors until the above mentioned errors are resolved.
    So the JSP-Editor does not help with compile errors.
    I have tried to use Lomboz instead, but due to the modularization in ISA5.0 and NWDI (ie the Taglibraries are defined in a separate module) I did not get it to work either.
    Does anybody have experience on how to get the JSP editor to work properly?
    Thanks for your help,
    Andreas

    Highlite the clip in the timeline, control click on it and choose "send to soundtrack as an audio file project" in the pop up menu. Don't do an "open with editor". This should work.
    If it doesn't and it's just the one clip, you could launch Soundtrack and then open that clip as an audio project . . . don't do a open with editor, just open it directly. Make your adjustment and save over writing the file with the new audio. You may want to copy the clip first as a backup. When you open your FCP project, you'll have to re-link the clip. Once you do it will show up with the new sound.

  • Can't get JSP debugging to work with WebLogic 6.0 and Eclipse 2.1.1

    Is native JSP debugging supported in WebLogic 6.0? If so, what are
              the steps involved in getting it to work? I'm in debug mode and my
              servlets will catch at my breakpoints but the JSP pages' breakpoints
              are ignored. I am using compliance level 1.3 and a JRE 1.3. I tried
              to start WebLogic with the 1.4.2 JRE but I get an exception error on
              the WLS JDK name" field. What am I missing here?
              Thanks!
              

    I appear to have solved it, but it is not clear to me why.
    I created a jar file of the required classes, and placed it in the same directory as the jsp file. My jsp code then looked like:
    <jsp:plugin type="applet" code="nz.astarte.ganttapplet.GanttApplet"
    codebase="."
    archive="GanttApplet.jar"
    jreversion="1.3.1"
    width="400" height="175">
    <jsp:fallback>
    Plugin support could not be determined
    </jsp:fallback>
    </jsp:plugin>
    This works fine. However I would expect to be able to move the jar file to some other directory, so that the jar file and jsp files are separated. I spent hours trying to work out why it wouldn't work when I had the jar
    file in WEB-INF/classes (under the jsp file directory) and had codebase="WEB-INF/classes/". In the end I put the jar file into a directory I defined separately called wotnot and defined codebase="wotnot/"
    Now it works. However I still think I should be able to have the jar file anywhere, including WEB-INF/classes and would love for someone to tell me why not!
    Thanks, Andrew

  • Wlcompile - nested javac elements not working with ant 1.6.1

    Hi
    I have a problem with Ant 1.6.1 and wlcompile.
    I get the following error: The <wlcompile> type doesn’t support the nested “javac”
    element.
    Heres the error msg I get in debug mode:
    BUILD FAILED
    C:\P2Development\dev\testing\test.xml:3: The <wlcompile> type doesn't support
    the nested "javac" element.
         at org.apache.tools.ant.IntrospectionHelper.throwNotSupported(IntrospectionHelper.java:573)
         at org.apache.tools.ant.IntrospectionHelper.getNestedCreator(IntrospectionHelper.java:624)
         at org.apache.tools.ant.IntrospectionHelper.getElementCreator(IntrospectionHelper.java:691)
         at org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:529)
         at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:320)
         at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:176)
         at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:152)
         at org.apache.tools.ant.Task.perform(Task.java:363)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
         at org.apache.tools.ant.Main.runBuild(Main.java:632)
         at org.apache.tools.ant.Main.startAnt(Main.java:183)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
    I’m using windows 2000. I’ve tried with weblogic.jar from Weblogic Server 8.1
    SP1 and SP2. I’ve tried with JDK 1.4.1_02 and 1.4.2_04. If I’m using Ant 1.5.3
    then everything works perfectly.
    I’ve tried to remove the WLS included Ant version to avoid conflicts with Ant
    1.6.1 and Ant 1.5.3 (that comes with Weblogic server). I’ve tried to uninstall
    Weblogic Server and just keep weblogic.jar, but I still get the same error. I’ve
    tried to put weblogic.jar on the classpath, still not working. I’ve tried to remove
    all jar files from $ANT_HOME/lib except those jar files needed to run my test
    project - ant.jar and ant-launcher.jar, but still doesn’t work. If I change $ANT_HOME
    to Ant 1.5.3 and run Ant 1.5.3 then everything works. So it seems to have something
    to do with Ant 1.6.1.
    Here’s my example code:
    <project name="wlcompile_test" default="test" basedir=".">
         <target name="test" depends="init">
    <wlcompile srcdir="${src.dir}" destdir="${build.dir}">
    <javac debug="${build.debuginfo}" debuglevel="${build.debuglevel}"
    nowarn="${build.nowarn}" deprecation="${build.deprecated}" source="${build.source.version}"/>
    </wlcompile>
         </target>
    <target name="clean" depends="init">
    <delete dir="${build.dir}"/>
    </target>
    <target name="init">
    <taskdef name="wlcompile" classname="weblogic.ant.taskdefs.build.WLCompileTask"
    classpath="C:\P2Development\weblogic.jar"/>
    <property name="src.dir" value="src"/>
    <property name="build.dir" value="classes"/>
    <property name="build.compiler" value="modern"/>
    <property name="build.compiler.pedantic" value="true"/>
    <property name="build.debuginfo" value="true"/>
    <property name="build.debuglevel" value="lines,vars,source"/>
    <property name="build.deprecated" value="false"/>
    <property name="build.nowarn" value="off"/>
    <property name="build.source.version" value="1.4"/>
    <mkdir dir="${build.dir}"/>
    </target>
    </project>
    And I try to run “ant test”
    It doesn’t work with Ant 1.6.1 and weblogic.jar from WLS 8.1 SP1 and SP2. But
    it works perfectly if I change to Ant 1.5.3.
    Here’s a link to the Ant wlcompile task documentation from BEA:
    http://e-docs.bea.com/wls/docs81/programming/environment.html#1098348
    Regards,
    Tobias Wallter

    Yes, this one is fixed in 8.1 SP3. If you need a patch before then,
    contact [email protected] and reference CR136493.
    -- Rob
    Tobias Wallter wrote:
    Hi
    I have a problem with Ant 1.6.1 and wlcompile.
    I get the following error: The <wlcompile> type doesn?t support the nested ?javac?
    element.
    Heres the error msg I get in debug mode:
    BUILD FAILED
    C:\P2Development\dev\testing\test.xml:3: The <wlcompile> type doesn't support
    the nested "javac" element.
         at org.apache.tools.ant.IntrospectionHelper.throwNotSupported(IntrospectionHelper.java:573)
         at org.apache.tools.ant.IntrospectionHelper.getNestedCreator(IntrospectionHelper.java:624)
         at org.apache.tools.ant.IntrospectionHelper.getElementCreator(IntrospectionHelper.java:691)
         at org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:529)
         at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:320)
         at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:176)
         at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:152)
         at org.apache.tools.ant.Task.perform(Task.java:363)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
         at org.apache.tools.ant.Main.runBuild(Main.java:632)
         at org.apache.tools.ant.Main.startAnt(Main.java:183)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
    I?m using windows 2000. I?ve tried with weblogic.jar from Weblogic Server 8.1
    SP1 and SP2. I?ve tried with JDK 1.4.1_02 and 1.4.2_04. If I?m using Ant 1.5.3
    then everything works perfectly.
    I?ve tried to remove the WLS included Ant version to avoid conflicts with Ant
    1.6.1 and Ant 1.5.3 (that comes with Weblogic server). I?ve tried to uninstall
    Weblogic Server and just keep weblogic.jar, but I still get the same error. I?ve
    tried to put weblogic.jar on the classpath, still not working. I?ve tried to remove
    all jar files from $ANT_HOME/lib except those jar files needed to run my test
    project - ant.jar and ant-launcher.jar, but still doesn?t work. If I change $ANT_HOME
    to Ant 1.5.3 and run Ant 1.5.3 then everything works. So it seems to have something
    to do with Ant 1.6.1.
    Here?s my example code:
    <project name="wlcompile_test" default="test" basedir=".">
         <target name="test" depends="init">
    <wlcompile srcdir="${src.dir}" destdir="${build.dir}">
    <javac debug="${build.debuginfo}" debuglevel="${build.debuglevel}"
    nowarn="${build.nowarn}" deprecation="${build.deprecated}" source="${build.source.version}"/>
    </wlcompile>
         </target>
    <target name="clean" depends="init">
    <delete dir="${build.dir}"/>
    </target>
    <target name="init">
    <taskdef name="wlcompile" classname="weblogic.ant.taskdefs.build.WLCompileTask"
    classpath="C:\P2Development\weblogic.jar"/>
    <property name="src.dir" value="src"/>
    <property name="build.dir" value="classes"/>
    <property name="build.compiler" value="modern"/>
    <property name="build.compiler.pedantic" value="true"/>
    <property name="build.debuginfo" value="true"/>
    <property name="build.debuglevel" value="lines,vars,source"/>
    <property name="build.deprecated" value="false"/>
    <property name="build.nowarn" value="off"/>
    <property name="build.source.version" value="1.4"/>
    <mkdir dir="${build.dir}"/>
    </target>
    </project>
    And I try to run ?ant test?
    It doesn?t work with Ant 1.6.1 and weblogic.jar from WLS 8.1 SP1 and SP2. But
    it works perfectly if I change to Ant 1.5.3.
    Here?s a link to the Ant wlcompile task documentation from BEA:
    http://e-docs.bea.com/wls/docs81/programming/environment.html#1098348
    Regards,
    Tobias Wallter

  • In Web.xml  welcome file tag not works

    Hi All ,
    I am developing simple web application using spring framework
    when i am try to add welcome file tag in web.xml with respective welcome page path but it not works.
    but when use jsp page without to having any property it works.
    what the problem with me
    Thanks

    Hi Frank
    Thank you for your reply.
    This is how I registered the session filter in web.xml
    <filter>
    <filter-name>SessionFilter</filter-name>
    <filter-class>com.avery.view.filter.SessionFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>SessionFilter</filter-name>
    <url-pattern>/faces/*.jsf</url-pattern>
    </filter-mapping>
    I'll try to use phaselisenter as you suggested.
    Also, one more thing please, in the session filter, I have something like this.
    public void doFilter(ServletRequest request, ServletResponse response,
    FilterChain chain) throws IOException, ServletException {
    System.out.println("JF--- Calling the Filter");
    if (request instanceof HttpServletRequest) {
    HttpServletRequest httpRequest = (HttpServletRequest)request;
    HttpServletResponse httpResponse = (HttpServletResponse)response;
    HttpSession session = httpRequest.getSession();
    String url = httpRequest.getPathTranslated();
    String path = httpRequest.getContextPath() + httpRequest.getServletPath();
    if (httpRequest.getRequestURI().equals(path+"/Login")) {
    System.out.println(" the request path is" + httpRequest.getRequestURI().toString());
    session.setAttribute("WELCOME", Boolean.TRUE);
    chain.doFilter(request, response);
    else if (session.getAttribute("WELCOME") == null){
    httpResponse.sendRedirect(path+"/Login");
    else {
    chain.doFilter(request, response);
    else {
    chain.doFilter(request, response);
    Do you think it looks right ?
    thanks
    Edited by: Lang on Apr 13, 2012 1:41 AM

  • Struts tag not working with Jbo Tag-BUG??

    Hi
    I am developing application using Struts with BC4J and encountered this problem.
    In a JSP page if I have &lt;jbo:DataScroller&gt; tag and &lt;html:cancel /&gt; button, the button is not working.
    If I remove the datascroller tag cancel button works fine (the way it should).
    Not sure why this is happening, can Jdev team look into this.
    Thanks

    Sashi N Ravipati wrote : "Not using a DataScroller tag within a form tag is impossible. If u have an example of it let me know."
    File > New > Web Tier > Struts-Based JSP for Business Components > Complete Struts-Based JSP Application
    One of the files it generated for me was EmpView1_Browse.jsp:
    <%@ page language="java" import="oracle.jbo.*" errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252" %>
    <%@ taglib uri="/webapp/DataTags.tld"  prefix="jbo" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <html>
    <head>
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <LINK REL=STYLESHEET TYPE="text/css" HREF="bc4j.css">
    <TITLE><bean:message key="browse.title"/></TITLE>
    </head>
    <body>
    <jbo:DataTransaction appid="JdevModuleDataModel" />
    <h3><bean:message key="browse.header" arg0="EmpView1"/></h3>
    <table border="0">
      <tr>
        <td ALIGN="right"><jbo:DataScroller datasource="JdevModuleDataModel.EmpView1"/></td>
      </tr>
      <tr>
        <td><jbo:DataTable datasource="JdevModuleDataModel.EmpView1" edittarget="/edit_EmpView1.do"/></td>
      </tr>
    </table>
    </body>
    </html>A jbo:DataScroller tag is used and it is not within a form tag.
    success
    -Jan

  • Navigation not working in Weblogic Server but working from JDeveloper.

    Hi
    I created a simple application with some page navigations (some declarative and some dynamic using Managed Bean).
    The navigation works fine when I run from JDeveloper. (Local System)
    So I deployed the application to the WebLogic server (Local system with a domain configured with ADF.)
    The pages are getting rendered correctly, bu on button clicks, the navigation is not happening from any of the pages.
    Could I have missed something or is there a way to track what the problem might be?
    JDev : 11.1.1.3
    Web Logic Server : 11gR1 (1.3) which comes with JDeveloper
    Thanks for any help.
    Sameer

    Hi John
    I am not using task flows. I just have some jspx pages defined in the unbounded task flow adfc-config.xml connected with navigation.
    I run from JDEveloper by right clicking on the jspx files.
    The URL when run from jdeveloper is as follows.
    http://127.0.0.1:7101/SessionsPOC-ViewController-context-root/faces/MainPage
    From Weblogic server I am using the link given in the Testing tab of the weblogic administration console.
    The URL is as follows.
    http://10.9.73.103:7001/SessionsPOC-ViewController-context-root (default)
    http://10.9.73.103:7001/SessionsPOC-ViewController-context-root/MainPage.jspx
    Actually, the URL given in the weblogic testing tab is not runnable. I am changing the link as follows to be able to run it.
    http://10.9.73.103:7001/SessionsPOC-ViewController-context-root/faces/MainPage.jspx
    I have defined the MainPage.jspx in the web.xml 's Welcome page. But it is not taking it I guess.
    Also, I am able to run the other page by giving the following url. But the navigation buttons are not working in that page also.
    http://10.9.73.103:7001/SessionsPOC-ViewController-context-root/faces/SecondPage.jspx
    Thanks
    Sameer

Maybe you are looking for

  • How to Install OS X To New HDD?

    Hi, I just bought a new SATA 500GB Seagate HDD and want to replace my current primary HDD, which is the default HDD for Mac Pro. But how am i going to install an OS X into a blank HDD? I need a step by step instruction which could direct me how. Is i

  • Why does my infinite pulse train stop early?

    Dear Community, I have a pulse train task running on counter 7 of a PXI-6608. The source is the oven-controlled stable 10MHz clock, which is passed to it over RTSI2. The Gate is constant low. It's supposed to be high for 5e7 ticks, then low for 2^32-

  • No work items in inbox once in a while but workflow is triggered

    Dears,    Before workflow is running well, recently some approver could not find work items in their inbox once in a while.   i have not do st workflow related and what maybe the reason?   Ths for your kindly focus BR.

  • Styling af|PanelAccordian

    Hi, I am styling af|panelAccordian , but the classes like af|panelAccordian::header-start, af|panelAccordian::header-title, af|panelAccordian::header-toolbar, af|panelAccordian::header-end, af|panelAccordian::header-disclosure{background-image:url("t

  • Massive problems with Logic/Network -can anyone advise?

    Is anyone out there using Logic on a network together with other composers, with shared samples and audio on an external RAID system via File Server? If you are, can you please offer some advice on what does work, because at the moment our system doe