Servlet filters on Tomcat 6. Not working on JSPs?

Hi there:
First of all I want to apologize because I'm not sure if this is the best place to ask a question like this, as it may have more to do with the treatment which Tomcat gives to JSPs more than the servlet filter standard. Anyway, here I go...
I'm new into the servlet filter's world (well, nor an expert in Java). To start from a point, I decided to try an example from Sing Li, on the IBM website. The code can be watched and downloaded here (the second one): [http://www.ibm.com/developerworks/java/library/j-tomcat/] .
This filter basically replaces a certain string in the response output (if found) by the dessired one. I've tested this code "as is" (well, changing the package only) and works great for pure servlets. However, testing this with JSPs outputs a simple and plain blank. Doing some research, I've realized that the problem could be in the class which inherits from HttpServletResponseWrapper. Instead of building a new ServletOutputStream I decided to re-utilize exactly the same which comes from the original "request" object but the problem persisted.
Another user, Giampaolo Tomassoni, faced a similar a problem. A message from him can be found here . He solved this overriding the "flushBuffer ()" method on the class which inherits from HttpServletResponseWrapper. I've tryed to the same, forcing the flush of the ServletOutputStream and the PrintWritter without any luck.
By the way, I've made sure that filters work on JSPs. Indeed, I've tested others and have done ok. This seems to be related to HttpServletResponseWrapper.
Do you have any idea about what could be the reason? Many thanks in advance :) .

I have the same issue.  My 3-month-old Iphone 6 128 GB model (60 GB free) was working fine yesterday.  I did not install any new apps, although typically 5-10 apps update automatically every night.  Today, out of the blue, about 80% of my apps will not load -- the app window opens then immediately crashes to home page (a double press shows the app is still in memory, but when I select it, it pops up for an instant, then goes back to home icon screen.  Example apps (CNN, CBS News, ABC News, NBC News, Scrabble, many others). I tried turning phone off and back on (three times) - no change. Then tried a hard reset (hold power button and home button down simultaneously for 10 seconds) - on reboot still no change.  Then I tried a Restore from backup on my PC - after restarting and clicking through all the welcome to ios 8 screeens - no change; most apps still crash immediately after starting.
I took my phone to the Verizon store where I bought it.  The agent tried the power off - power on routine again with no success. I informed him that I also tried the restore from backup at home with no success.  He authorized a warranty replacement and my new replacement iPhone will be FEDEXed to my home Tuesday.  Hope this one works after a restore from backup and this isn't some colossal bug with the latest software update (IOS 8.1.3), which I installed about a week ago.  Internet searches reveal that a number of folks are having problems with their 128gb iphone6 devices - something about bad NAND memory.
Stats on my iPhone 6, in case others have similar problems, so we can possibly identify a trend:  4,831 songs; 1 video, 3,912 photos, 392 applications, 114 gb capacity, 59.8 gb free, version 8.1.3, carrier Verizon 18.1, Model MG602LL/A.
Has anyone else started having problems with apps suddenly refusing to work on their 128 gb iPhone6?

Similar Messages

  • Creating a link to text file in a tomcat server not working in JSP webapp

    I am using netbeans to create an web application within my desktop, and then I load the build/web folder to a tomcat server to test the application. Everything works fine. However, when I try to link up my JSP pages to text files (.txt) create by the application on the server, I seem to be getting files that might be kept in a terminal.
    When I get the Real path of the servlet context, I find that it is to a C:\ type file rather than a //hostname type of directory. So obviously those files are not being reached.
    Does anybody know how to deal this problem?

    There are a number of ways to get to the Flash Global Security settings dialog.
    My favourite way is just to double click on a Captivate SWF (not the HTM file) to open it in a web browser, then right click on the playing screen to get the Flash context menu.  On the context menu, click the Global Settings option.
    In the web page that opens, click the link on the left to Global Security Settings.
    Add the folder or drive location of your published Captivate content to the Trusted Locations.

  • Javascript is not working in JSP

    Hi everybody,
    My javascript is not working in JSP.I m not able to fix this problem.Please tell where the problem in code.
    thx in advance.
    <%@page import="javax.servlet.http.*" %>
    <%@page import="java.sql.*" %>
    <html>
    <head>
    <script type="text/javascript" >
    funtion checkentries()
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)
    alert("Please fill all entries")
    else
    document.LForm.submit()
    </script>
    </head>
    <body>
    <table width=100% height=100% valign="center" align="center" border=0>
    <tr height=10% ><td>
    <%@ include file="Header.jsp" %>
    <hr>
    </td></tr>
    <tr height=1% width=100%>
    <td align=right>Register
    <hr>
    </td>
    </tr>
    <tr height=77% width=100% ><td>
    <table>
    <tr><td width=65%>
    </td>
    <td bgcolor="black" width="1" ></td>
    <td align="right" valign="top" >
    <form method="POST" action="/EIS/Home.do" name="LForm">
    User Name: <input type="text" align=right name="uname"><br>
    Password: &nbsp&nbsp&nbsp<input type="password" name="upassword"><br>
    <input type="submit" name="submit" value="Submit" onclick="checkentries()">
    </td>
    </tr>
    </table>
    </td></tr>
    <tr height=10% ><td>
    <hr>
    <%@ include file="Footer.jsp" %>
    </td></tr>
    </table>
    </body>
    </html>

    in this part:
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)should be:
    if(document.LForm.uname.value=="" || document.LForm.upassword.value=="")or
    if(document.LForm.uname.value.length==0 || document.LForm.upassword.value.length==0)

  • Registered servlets in web.xml do not work....WHY????

    Hi i am executing a web application on tomcat 4.1.29 and have the following structure...the jsp pages are executed but when sendinga request to a servlet the servlets are not executed...Can somebody guide me out of this....
    webapps
    {MyApp}->[web-inf][jsp]
    {web-inf}->[classes][lib]
    {classes}->[com][src]
    {src}->[source files]
    when the source files are compiled package structure is followed and the class files are grneated in
    com.MyApp.servlets
    ...etc
    the servlets are registered in the web.xml file as shown below.....few lines of my web.xml file
    <servlet>
    <servlet-name>userServlet</servlet-name>
    <servlet-class>com.MyApp.servlets.UserServlet</servlet-class>
    </servlet>
    even then when accessing a servlet it says the resource not found
    The requested resource (/MyApp/servlet/UserServlet) is not available.
    am i missing something some where...why are the servlets not executed????

        <servlet>
            <servlet-name>UserServlet</servlet-name>
            <servlet-class>com.MyApp.servlets.UserServlet</servlet-class>
            <load-on-startup>2</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>UserServlet</servlet-name>
            <url-pattern>/User</url-pattern>
        </servlet-mapping>I'd invoke it with this URL:
    http://localhost:8080/MyApp/UserServlet
    hmm something seems to be wrong here ;-)
    URL should be
    http://localhost:8080/MyApp/User (see <url-pattern>)

  • Tomcat does not work when using only netcfg to start network

    hello!
    for myself i wrote a script to connect automatically to a wireless network using netcfg. i do not start my network via the daemon (/etc/rc.d/network).
    i have a project and so i want to use tomcat. but it does not work correct, i can start it, but i can't connect via "localhost:8080". when i start my network using the network daemon it works! apache runs fine, but i need tomcat!
    can someone help me please?
    thx, marv

    where is "lo" enabled in the network script? i did not found it and/or i have no idea which function enables it.
    can you help me please? can i just copy the lines of code to my own script and it will enable lo?
    mfg iggy

  • Filter does not work with *.jsp URL pattern???

    Hi All,
    I am, by no means, very good at JSF or Java. I have looked at various forum posts on here for ways to implement a security filter to intercept requests to pages that first require one to be logged in, and if not, redirect them to the login page. Yes, I know a lot of you have heard this many times before, and I'm sorry to bring it up again.
    BUT, from the guidance of other posts, I have got a filter that works fine when the url pattern is set to "/faces/*" or "/<anything>/*", however it won't work for "*.jsp" or "*.<anything>"
    My filter is as follows:
    package test.security;
    import javax.faces.context.FacesContext;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.http.HttpSession;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class SecurityFilter implements Filter{
        /** Creates a new instance of SecurityFilter */
        private final static String FILTER_APPLIED = "_security_filter_applied";
        public SecurityFilter() {
        public void init(FilterConfig filterConfig) {
        public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletException{
            HttpServletRequest req = (HttpServletRequest)request;
            HttpServletResponse res = (HttpServletResponse)response;
            HttpSession session = req.getSession();
            String requestedPage = req.getPathTranslated();
            String user=null;
            if(request.getAttribute(FILTER_APPLIED) == null) {
                //check if the page requested is the login page or register page
                if((!requestedPage.endsWith("Page1.jsp")) /* This is the login page */
                    //set the FILTER_APPLIED attribute to true
                    request.setAttribute(FILTER_APPLIED, Boolean.TRUE);
                    //Check that the session bean is not null and get the session bean property username.
                    if(((test.SessionBean1)session.getAttribute("SessionBean1"))!=null) {
                        user = ((test.SessionBean1)session.getAttribute("SessionBean1")).getUsername();
                    if((user==null)||(user.equals(""))) {
                       // try {
                     //       FacesContext.getCurrentInstance().getExternalContext().redirect("Page1.jsp");
                      //  } catch (ServletException ex) {
                      //      log("Error Description", ex);
                        res.sendRedirect("../Page1.jsp");
                        return;
            //deliver request to next filter
            chain.doFilter(request, response);
        public void destroy(){
    }My web.xml declaration for the filter is:
    <filter>
      <description>Filter to check whether user is logged in.</description>
      <filter-name>SecurityFilter</filter-name>
      <filter-class>test.security</filter-class>
    </filter>
    <filter-mapping>
      <filter-name>SecurityFilter</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    Note: I have also tried this with <url-pattern>*.jsp</url-pattern> for the filter mapping in place of the Faces Servlet
    My web.xml declaration for the url pattern is:
    <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>Which JSC/NetbeansVWP automatically creates a "JSCreator_index.jsp" which has:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root  version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page">
      <jsp:forward page="Page1.jsp"/>
    </jsp:root>When run, this causes an Error 500 in the browser and a NullPointerException in SecurityFilter.java on the line:
    if((!requestedPage.endsWith("Page1.jsp")) /* This is the login page */I think I'm missing something that would be obvious to anyone who knows better than me. Any ideas?

    Dear Ginger and Boris,
    thanks for the information - the problem seems to ocur in EP7 as well, Boris told me it is fixed in SP15. We are on SP14 now, so there is hope !
    actually the information in the oss note stated above is also true, as we have an Oracle DB. On a similar demo system (only difference is SQL DB) the hyphen search works !
    best regards, thank you !
    Johannes

  • Weblogic 9.1/10 not working on jsp:directive.include file="file.jspf"/

    Does anyone know how to get rid of this problem? I have a jsp page including a sun java studio creator created page fragment using the tag:
    <jsp:directive.include file="myHeader.jspf"/>
    here myHeader.jspf is a page fragment.
    after deployment, weblogic server report error as:
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /Page1.jsp
    Page1.jsp:15:57: Error in "C:\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\proj\grb4mk\war\myHeader.jspf" at line 1: The encoding "null" specified in the XML prolog is unsupported.
    <jsp:directive.include file="myHeader.jspf"/>
    ^----------------^
    Any idea? I tried both weblogic 9 and 10, same error, change to
    <jsp:include page="myHeader.jspf"/>
    works. the question is: why not read jsp 1.2 tag? Any way to make it work with jsp:directive.include tag?
    thanks in advance.
    Edited by: user10243594 on Sep 10, 2008 10:22 AM

    The "jsp:directive.include" tag is only valid in an well-formed XML file that specifies all the relevant namespaces. The "jsp:include" tag is used in a JSP file. I'll bet the beginning of your file shows that you don't have a valid and well-formed XML file.
    If you found that "jsp:include" worked, then that confirms you have an ordinary JSP file here. Why are you trying to use the XML form? The result of "jsp:include" in a JSP file will be exactly the same as the analogous tag in an XML file.

  • If condition statement not working in jsp scriptlet

    <%
    String hostName = java.net.InetAddress.getLocalHost().getCanonicalHostName();
    if(hostName.endsWith("dinesh.com"))
    System.out.println("it works");
    else {
    System.out.println("it doesn't work");
    %>
    I am getting output as it works & it doesn't work. It seems the If condition is not working. Pls help with this issue.
    Thanks

    Dinesh_Nala wrote:
    Even the condition in if is returning true, the x value i am get as "/user2/"How did you knew that it returns true? Or did you just expect that? Do you trust yourself more than Java? Too bad.
    Just debug it:
    System.out.println("Actual hostname value: [" + hostName + "]");
    System.out.println("Does it end with dinesh.com? " + hostName.endsWith("dinesh.com"));

  • Urgent: SAX parser bean is not working in JSP page

    Hi All,
    I have created a bean "ReadAtts" and included into a jsp file using
    "useBean", It is not working. I tried all possibilities. But Failed Plz Help me.
    Below are the details:
    Java Bean: ReadAtts.java
    package sax;
    import java.io.*;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import java.util.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.ParserConfigurationException;
    public class ReadAtts extends DefaultHandler implements java.io.Serializable
         private Vector attNames = new Vector(); //Stores all the att names from the XML
         private Vector attValues = new Vector();
         private Vector att = new Vector();
         private Locator locator;
         private static String start="",end="",QueryString="",QString1="",QString2="";
    private static boolean start_collecting=false;
         public ReadAtts()
         public Vector parse(String filename,String xpath) throws Exception
    QueryString=xpath;
         StringTokenizer QueryString_ST = new StringTokenizer(QueryString,"/");
         int stLen = QueryString_ST.countTokens();
         while(QueryString_ST.hasMoreTokens())
              if((QueryString_ST.countTokens())>1)
              QString1 = QueryString_ST.nextToken();
    else if((QueryString_ST.countTokens())>0)
                   QString2 = QueryString_ST.nextToken();
         SAXParserFactory spf =
    SAXParserFactory.newInstance();
    spf.setValidating(false);
    SAXParser saxParser = spf.newSAXParser();
    // create an XML reader
    XMLReader reader = saxParser.getXMLReader();
    FileReader file = new FileReader(filename);
    // set handler
    reader.setContentHandler(this);
    // call parse on an input source
    reader.parse(new InputSource(file));
         att.add("This is now added");
         //return attNames;
    return att;
    public void setDocumentLocator(Locator locator)
    this.locator = locator;
    public void startDocument() {   }
    public void endDocument() {  }
    public void startPrefixMapping(String prefix, String uri) { }
    public void endPrefixMapping(String prefix) {  }
    /** The opening tag of an element. */
    public void startElement(String namespaceURI, String localName,String qName, Attributes atts)
    start=localName;
    if(start.equals(QString2))
    start_collecting=true; //start collecting nodes
    if(start_collecting)
    if((atts.getLength())>0)
    for(int i=0;i<=(atts.getLength()-1);i++)
    attNames.add((String)atts.getLocalName(i));
    attValues.add((String)atts.getValue(i));
    /** The closing tag of an element. */
    public void endElement(String namespaceURI, String localName, String qName)
    end = localName;
    if(end.equals(QString2))
         start_collecting=false; //stop colelcting nodes
    /** Character data. */
    public void characters(char[] ch, int start, int length) { }
    /** Ignorable whitespace character data. */
    public void ignorableWhitespace(char[] ch, int start, int length){ }
    /** Processing Instruction */
    public void processingInstruction(String target, String data) { }
    /** A skipped entity. */
    public void skippedEntity(String name) { }
    public static void main(String[] args)
    String fname=args[0];
    String Xpath=args[1];
    System.out.println("\n from main() "+(new ReadAtts().parse(fname,Xpath)));
    //System.out.println("\n from main() "+new ReadAtts().attNames());
    //System.out.println("\n from main() "+new ReadAtts().attValues());
    JSP File:
    <%@ page import="sax.*,java.io.*,java.util.*,java.lang.*,java.text.*;" %>
    <jsp:useBean id="p" class="sax.ReadAtts"/>
    Data after Parsing is.....
    <%=p.parse"E:/Log.xml","/acq/service/metrics/system/stackUsage")%>
    Expected Output:
    The jsp file should print all the vector objects from the "ReadAtts" bean
    Actual Output:
    Data after Parsing.......[]
    Thanks for your time.....
    Newton
    Bangalore. INDIA

    the problem is not because of java code insdie jsp page
    I have removed all things but the form and it is still not working
    here is the modified code:
    <!-- add news-->
    <%
    if(request.getParameter("addBTN") != null){
            out.print("addBTN");
    %>
    <!-- end of add news-->
    <form action="" method="post" enctype="multipart/form-data" name="upform" >
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr>
          <td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
        </tr>
        <tr>
          <td width="87%" align="right"><label>
            <input name="title" type="text" class="rightText" id="title">
          </label></td>
          <td width="13%" align="right">9FH'F 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
              </textarea></td>
          <td align="right">*A'5JD 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input type="file" name="filename" id="filename">
          </label></td>
          <td align="right">5H1)</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input name="addBTN" type="submit" class="btn" id="addBTN" value="  '6'A) .(1 ">
          </label></td>
          <td align="right"> </td>
        </tr>
      </table>
    </form>
    <!-- TinyMCE -->
    <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
            tinyMCE.init({
                    mode : "textareas",
                    theme : "simple",
                    directionality : "rtl"
    </script>
    <!--end of TinyMCE -->

  • HTML multipart form is not working in jsp page

    Hi
    i have jsp page, has a HTML from with file upload field , when i click the send button , nothing happened as if the button did not submit the form. ie the message at line 12 is not printed out.
    can any one help please.
    <%@ page errorPage="..\error\error.jsp" %>
    <%@ page pageEncoding="windows-1256" %>
    <%@ page language="java" import="javazoom.upload.*,java.util.*,java.sql.ResultSet" %>
    <jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
      <jsp:setProperty name="upBean" property="folderstore" value="<%=request.getRealPath("thuraya//uploads")%>"  />
    </jsp:useBean>
    <jsp:useBean id="dbc" class="mypackage.DBConnection" scope="session" />
    <!-- add news-->
    <%
    if(request.getParameter("addBTN") != null){
            out.println("addbtn");
            //do upload file + insert in database
             if (MultipartFormDataRequest.isMultipartFormData(request))
             // Uses MultipartFormDataRequest to parse the HTTP request.
             MultipartFormDataRequest mrequest = new MultipartFormDataRequest(request);
             String todo = null;
             if (mrequest != null) todo = mrequest.getParameter("todo");
                 if ( (todo != null) && (todo.equalsIgnoreCase("upload")) )
                    Hashtable files = mrequest.getFiles();
                    if ( (files != null) && (!files.isEmpty()) )
                        UploadFile file = (UploadFile) files.get("filename");
                        if (file != null)
                                            out.println("<li>Form field : uploadfile"+"<BR> Uploaded file : "+file.getFileName()+" ("+file.getFileSize()+" bytes)"+"<BR> Content Type : "+file.getContentType());
                                            String fileName=file.getFileName();
                                            String ran=System.currentTimeMillis()+"";
                                            String ext=fileName.substring(   ( fileName.length()-4),fileName.length() );
                                            file.setFileName(ran+ext);
                        // Uses the bean now to store specified by jsp:setProperty at the top.
                        upBean.store(mrequest, "filename");
                                            String title=request.getParameter("title");
                                            String content=request.getParameter("elm1");
                                            int x=dbc.addNews(title,content,file.getFileName(),2,1);
                                            if(x==1)
                                                     out.print("New Vedio has been addedd Successfully");
                                                      response.setHeader("Refresh","1;URL=uploadVedio.jsp");
                                                     else{
                                                      out.print("An Error Occured while adding new Vedio");
                                                      response.setHeader("Refresh","1;URL=uploadVedio.jsp");
                    else
                      out.println("<li>No uploaded files");
             else out.println("<BR> todo="+todo);
    %>
    <!-- end of add news-->
    <form action="" method="post" enctype="multipart/form-data" name="upform" >
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr>
          <td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
        </tr>
        <tr>
          <td width="87%" align="right"><label>
            <input name="title" type="text" class="rightText" id="title">
          </label></td>
          <td width="13%" align="right">9FH'F 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
              </textarea></td>
          <td align="right">*A'5JD 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input type="file" name="filename" id="filename">
          </label></td>
          <td align="right">5H1)</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input onClick="submit()" name="addBTN" type="button" class="btn" id="addBTN" value="  '6'A) .(1 ">
          </label></td>
          <td align="right"> </td>
        </tr>
      </table>
    </form>
    <!-- TinyMCE -->
    <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
            tinyMCE.init({
                    mode : "textareas",
                    theme : "simple",
                    directionality : "rtl"
    </script>
    <!--end of TinyMCE -->

    the problem is not because of java code insdie jsp page
    I have removed all things but the form and it is still not working
    here is the modified code:
    <!-- add news-->
    <%
    if(request.getParameter("addBTN") != null){
            out.print("addBTN");
    %>
    <!-- end of add news-->
    <form action="" method="post" enctype="multipart/form-data" name="upform" >
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr>
          <td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
        </tr>
        <tr>
          <td width="87%" align="right"><label>
            <input name="title" type="text" class="rightText" id="title">
          </label></td>
          <td width="13%" align="right">9FH'F 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
              </textarea></td>
          <td align="right">*A'5JD 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input type="file" name="filename" id="filename">
          </label></td>
          <td align="right">5H1)</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input name="addBTN" type="submit" class="btn" id="addBTN" value="  '6'A) .(1 ">
          </label></td>
          <td align="right"> </td>
        </tr>
      </table>
    </form>
    <!-- TinyMCE -->
    <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
            tinyMCE.init({
                    mode : "textareas",
                    theme : "simple",
                    directionality : "rtl"
    </script>
    <!--end of TinyMCE -->

  • Navigation button not working in JSP

    JDeveloper10g JSP:
    "NestSet", "PreviousSet" button not working after a search is done on a read-only table. Is this a know bug?
    Please help!!!

    Vishal,
    I dont think the Notification Create Button from line item is pretty much dependent on the Customization Settings or any sap note concerning this has not been as yet brought into my notice. In my system, this is working appropriately. The problem with this which i can think of is either an authorization issue or you should raise an oss for this.
    Regards,
    Usman

  • JDBC in tomcat 4 not working

    hi
    how i can set in tomcat 4 JDBC ?
    i have applet->servlet->database
    it works in tomcat 3 but not in tomcat 4
    what i need wrote in servel.xml and does i need put my jdbc driver in it ???
    thanks

    Just a guess -- Make sure the classpath to jdbc driver is correct. In Tomcat 4, you may need to set the jdbc classpath in catalina.sh.

  • Weblogic.servlet.reloadCheckSecs in web.xml not working

    Given the following web.xml file:
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
              1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <context-param>
              <param-name>weblogic.servlet.reloadCheckSecs</param-name>
              <param-value>100</param-value>
              </context-param>
              <servlet>
              <servlet-name>CookieCounter</servlet-name>
              <servlet-class>servlets.CookieCounter</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>CookieCounter</servlet-name>
              <url-pattern>monster</url-pattern>
              </servlet-mapping>
              <welcome-file-list>
              <welcome-file>hello.html</welcome-file>
              </welcome-file-list>
              <error-page>
              <error-code>404</error-code>
              <location>/error.jsp</location>
              </error-page>
              </web-app>
              It seems the weblogic.servlet.reloadCheckSecs property is not taking effect.
              The
              default value of -1 is always used. I did stop and restart weblogic.
              I also trid to set the servlet classpath in the web.xml file with
              weblogic.servlet.classpath
              property and it did not change the classpath for the servlet. It seems that
              other
              items are working such as adding new servletrs to the web application. Note
              that
              this is the cookie sample application that installes with the beta 2
              download.
              Thanks,
              Dan.
              

    Hi All:
    Thanks for all your help regarding the adfAuthentication success_url. Now I am able to configure to make this work. But now I am facing another issue i.e. I am getting 401 Not authorized message when the success_url is pointed to the jspx page.
    Note: I am using custom login module similar to DBProcOraDataSourceLoginModule so my roles are stored in the custom Role class. So I am not sure how to pass this role info to the security in ADF in order to authorize the page to be viewed.
    Could you please help and can you point me to any specific link.
    Thanks & Regards
    Sridhar Doki

  • Debugging LCDS Data Management from Flexbuilder3 on Tomcat does not work

    I have a sample with Data Management and when i use it on my tomcat it works fine. But i can´t debug it from flexbuilder 3. When i start it from the flexbuilder i get the connection and then i crashed with "No registered fault handler or token responder - throwing an error for destination:"
    It is the same tomcat i use to run standalone.
    is it a problem with the context.xml?
    [SWF] /flexine/dataService_wt2.swf - 1.422.965 bytes after decompression
    'cds-consumer-sandwich-null' consumer set destination to 'sandwich'.
    Configuration for destination='sandwich':
    New DataService for destination: sandwich
    DataService.fill() called for destination: sandwich with args: []
    '4A853118-F24B-5FE2-BF01-FCDFF6C93161' producer set destination to 'sandwich'.
    Creating a new independent data store for destination: sandwich
    Adding data service: sandwich to the data store: null initialized: false
    Finished validating destination: sandwich loadOnDemand/paged associations: [] sub-types:
    data store: null is initialized
    'my-rtmp' channel endpoint set to rtmp://localhost:2038
    'my-rtmp' channel settings are:
    'ds-producer-sandwich' producer sending message '52AF7949-7B16-7C8E-3B87-FCDFF6F8D3A2'
    'my-rtmp' channel got connect attempt status. (Object)#0
      code = "NetConnection.Connect.Success"
      description = "Connection succeeded."
      details = (null)
      DSMessagingVersion = 1
      id = "E35ECC7A-710F-4D9B-A507-330FDD83B283"
      level = "status"
      objectEncoding = 3
    'my-rtmp' channel is connected.
    'my-rtmp' channel sending message:
    (mx.messaging.messages::CommandMessage)
      body=(Object)#0
      clientId=(null)
      correlationId=""
      destination="sandwich"
      headers=(Object)#0
      messageId="CDC66303-F24B-1E87-4103-FCDFF8211298"
      operation="client ping"
      timeToLive=0
      timestamp=0
    'my-rtmp' channel sending message:
    (mx.data.messages.DataMessage)
      messageId = '52AF7949-7B16-7C8E-3B87-FCDFF6F8D3A2'
      operation = fill
      destination = sandwich
      identity = (null)
      body = []
      headers = {}
    'ds-producer-sandwich' producer connected.
    'ds-producer-sandwich' producer acknowledge of 'CDC66303-F24B-1E87-4103-FCDFF8211298'.
    'ds-producer-sandwich' producer acknowledge of '52AF7949-7B16-7C8E-3B87-FCDFF6F8D3A2'.
    'ds-producer-sandwich' producer fault for '52AF7949-7B16-7C8E-3B87-FCDFF6F8D3A2'.
    Dispatching fault event for destination: sandwich
    No registered fault handler or token responder - throwing an error for destination: sandwich
    [RPC Fault faultString="There was an unhandled failure on the server. javax/transaction/SystemException" faultCode="Server.Processing" faultDetail="null"]
         at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()[C:\depot\flex\branches\enterprise_corfu_b2\frameworks\projects\data\src\mx\data\ConcreteDataService.as:2401]
         at DataListRequestResponder/fault()[C:\depot\flex\branches\enterprise_corfu_b2\frameworks\projects\data\src\mx\data\ConcreteDataService.as:6970]
         at mx.rpc::AsyncRequest/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
         at NetConnectionMessageResponder/statusHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:523]
         at mx.messaging::MessageResponder/status()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:222]

    Here's an update for future victims doing google searches :-)
    The issue appears to be related to compiz. When I'm doing basic 2D desktop with metacity everything simply rocks: the machine suspends/resumes with no issues.
    When compiz is enabled, there is about 10 second delay after resume, during which the screen is black and you better not touch the keyboard! If I sit and wait for 8-12 seconds, the dark screen goes away GDM login dialog shows up. But if I touch the keyboard or the touchpad, it will either freeze or become exceptionally slow.

  • Tomcat + JDK = Not Working

    Thanks to all for at least viewing my topic...
    First off, I am running Linux Mandrake 8.0, here are the specs:
    Apache: Apache 1.3.19
    JDK: jdk-1.3.1-fcs
    Tomcat: tomcat-3.1-3k
    I've been running apache as a stable server for, oh, about 3 months now. I am hosting multiple websites and one of my clients asked me, "Is JSP supported?" so I tried an example JSP page and it didn't work.
    I installed jdk and then Tomcat but for some reason, the TOMCAT daemon won't startup as supposed to... It just says this:
    [root@skynet conf]# service tomcat start
    Starting tomcat:
    [root@skynet conf]#
    Doesn't start. So I don't know where the error is... these were installed in RPM's, not tar's.
    Any help would be much obliged, email me: [email protected]
    Jamie Savard
    Elite Innovations

    somebody please help me.
    i have installed jdk1.2.2
    Tomcat3.2.1
    oracle 8.1.7
    My path settings are
    JAVA_HOME=c:\jdk1.2.1
    TOMCAT_HOME=c:\tomcat\tom3.2.1
    running on windows98
    when i try to start Tomcat i get the following error
    Using CLASSPATH:
    Bad command or file name
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Unable to set CLASSPATH dynamically.
    Note: To set the CLASSPATH dynamically on Win9x systems
    only DOS 8.3 names may be used in TOMCAT_HOME!
    Setting your CLASSPATH statically.
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Using CLASSPATH:
    Bad command or file name
    Please help me what i need to do. I'm new to this environment.

Maybe you are looking for

  • Try Lenovo's new cloud app---REACHit!

     REACHit----A BRAND NEW AND AMAZING CLOUD APP! REACHit allows you to manage all of your files, no matter where they are stored, inside one single app. Connect your Windows, Android, and iOS devices along with multiple cloud storage accounts for an ea

  • EA4500 -- Connection between 2 PC's fails

    This issue has gone on for quite a while now....  As an IT person this is baffling to me: Very simple home network --  192.168.6.X/24  addresses handed out by a Linksys EA4500.  About 16 wireless and 1 wired device total on network. Two laptops - One

  • Application Server File Status

    Hi, I'm trying to read a file from AL11 which is written by a standard program. I want to ensure that file is completely written on Appl. server by the standard program before I start reading that file from my Custom Program. Kindly Tell me the metho

  • How do I get the directory name from my program?

    Hi, I want to indentify the directory name where my executable is running from the program. Is there any API similar to GetCurrentDirectory in Windows. Thanks, Ram

  • DateFormat:how to differentiate between 1905 & 2005

    I am writing an application for a mysql database where in I have to populate some very old data in to the database.For that I need to convert dates from the format "MM/dd/yy" into the format "yyyy-mm-dd"( this format being used in mysql).Although I h