RequestDispatcher and .jsp "first run" problem

Hello all,
I'm testing our app on a development server (rh 8.0, tomcat 4.1.18-LE-jdk14, apache 2.0.44, mod_jk-2.0.43 ). Everything seems to work fine except...
I have several instances of servlets that call a .jsp, which calls a servlet, which calls another .jsp, etc. My problem is that the servlets have a problem referencing the .jsps the first time each one is called after a tomcat/apache restart. BTW, jsp to jsp calls work perfectly.
For example, the log-in page calls a servlet which retrieves session and user info from a db and forwards the user to their "home page" that is built in .jsp. The first time I try to log in, I get the following error:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
     at com.act.cit.ui.CitGeneralServlet.gotoJSPErrorPage(CitGeneralServlet.java:119)
     at com.act.cit.ui.CitGeneralServlet.cleanUpForException(CitGeneralServlet.java:136)
     at com.act.cit.ui.CitLoginServlet.doPost(CitLoginServlet.java:201)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.catalina.servlets.InvokerServlet.serveRequest
So not only am I not accessing the .jsp, but I'm not finding my desginated error .jsp either...looks like the 'null' that is being referenced is the .jsp I'm trying to hit. I've confirmed that the database is being accessed correctly (non-null results) and that I'm getting to the point in my servlet that forwards me to my .jsp:
req.getRequestDispatcher("../jsp/citMain.jsp").forward(req, res);
I've also tried:
getServletContext().getRequestDispatcher("../jsp/citMain.jsp").forward(req, res);
"req" and "res" both have non-null addresses. The next time I try to log in, everything works perfectly, just as it does on our old production server.
All I can think of is that there's some sort of problem in the apache/tomcat config, but why would the server be able to process the .jsp successfully on subsequent tries?
Thanks a lot! This one's really been eating at me!

What version of tomcat and jdk are you using?rh 8.0, tomcat 4.1.18-LE-jdk14, apache 2.0.44, mod_jk-2.0.43
I left my first getRequestDispatcher attempt as relative addressing and changed to absolute address on the second just to test:
rd = req.getRequestDispatcher("../jsp/citMain.jsp");
if (rd==null){  
     LogFileWriter.logThis(this, "rd was null");  //this is just a static logger I wrote  
     rd = req.getRequestDispatcher("/jsp/citMain.jsp");  
     if (rd==null)     
          LogFileWriter.logThis(this, "rd is still null");  
     else     
          LogFileWriter.logThis(this, "now rd is okay");
else{  
     LogFileWriter.logThis(this, "rd was okay");
} Here's my new logfile output after two login attempts:
CitGeneralServlet--
rd was null
CitGeneralServlet--
now rd is okay
end of the first attempt, now here's the results of the 2nd attempt:
CitGeneralServlet--
rd was okay
I still think it's odd that I can use relative addresses after the first execution, but I'm sure it's something to do with when the .jsp is compiled. Anyway, I don't have time to dig for the root cause right now. Absolute address seems to fix the problem, I'll stick with that. Thanks for all the suggestions. Hopefully this thread will help someone else who comes across the same problem.

Similar Messages

  • URGENT: sp6 and JSP compiling/classpath problem?

    Hi,
              We installed sp6 on our production site a little over a week and started
              seeing this problem on our logs with regards to any JSP with an include tag,
              such as:
              <%@ include file="/inc/insideHeadTag.jsp" %>
              INTERMITTENTLY, we will get the following error in the page on the client
              side at runtime:
              < ! -- cannot include file '/inc/insideHeadTag.jsp', resource not
              found -- >
              I grepped this newsgroup and noticed a previous unanswered post of the same
              nature, "Static compiles do not seem to include JSP's". Except in our case,
              this problem also manifest for dynamic JSP compiles, happens sporatically,
              and only started with sp6.
              Bug???
              Gene Chuang
              Join Kiko.com!
              

              Just to clarify - I'm not from BEA, I'm from EA - short a letter.
              As far as I know, there is no synchronization between WL instances in a cluster regarding the
              the compiling of JSPs. So when you start up two WL instances that share the same workingDir,
              and each WL instances gets a hit on your shiny new index.jsp, they both need to compile it. So the first
              one compiles it and writes index.class, the second does the same, overwriting the first _index.class,
              possibly at the same time that the first instance is trying to load _index.class into memory. And you
              get a mysterious 'class not found' error. Not likely, but possible.
              "Gene Chuang" <[email protected]> wrote:
              >Hmm, interesting... I thought Weblogic strongly recommends clustered
              >servers sharing the same file system?
              >
              >So you're saying the system-wide, cluster and node specific directories can
              >reside on the shared drive, but workingDirs should reside on local drives?
              >
              >--
              >Gene Chuang
              >Join Kiko.com!
              >
              >"Mike Reiche" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Make sure that your WLS instances are NOT sharing the workingDir. If two
              >instances
              >> try to compile the same JSP at the same time, bad things can happen.
              >>
              >> Mike
              >>
              >> "Gene Chuang" <[email protected]> wrote:
              >> >Hi Jong,
              >> >
              >> >Thanks for the reply; but I wish the solution is as simple as that.
              >Yes,
              >> >my .jsps are in the proper directory. They have been working properly
              >for
              >> >the past 6 months, since we were running WL 4.5.1. Only when I switched
              >to
              >> >WL 5.1 sp6 did this bug start showing up. Plus, like I said in my
              >original
              >> >post, this bug is sporatic. SOMETIMES the included jsp is found by
              >Weblogic
              >> >and the includer jsp compiles correctly; other times it isn't found and
              >the
              >> >includer jsp leaves a gap! What's going on?
              >> >
              >> >We are running clustered web servers in Solaris 2.7 with a shared file
              >> >system. This sporatic behavior may be because some nodes aren't working
              >> >properly???
              >> >
              >> >--
              >> >Gene Chuang
              >> >Join Kiko.com!
              >> >
              >> >"Jong Lee" <[email protected]> wrote in message
              >> >news:[email protected]...
              >> >>
              >> >> "Gene Chuang" <[email protected]> wrote:
              >> >> >Hi,
              >> >> >
              >> >> >We installed sp6 on our production site a little over a week and
              >started
              >> >> >seeing this problem on our logs with regards to any JSP with an
              >include
              >> >tag,
              >> >> >such as:
              >> >> I assumed insideHeadTag.jsp is in
              >> >> YOUR_DOCUMENT_ROOT/inc/insideHeadTag.jsp
              >> >>
              >> >> if you haven't read the spec of relative URI please do so:
              >> >> jsp spec 1.1 - section 2.5.2
              >> >>
              >> >> Jong
              >> >>
              >> >> >
              >> >> > <%@ include file="/inc/insideHeadTag.jsp" %>
              >> >> >
              >> >> >INTERMITTENTLY, we will get the following error in the page on the
              >client
              >> >> >side at runtime:
              >> >> >
              >> >> > < ! -- cannot include file '/inc/insideHeadTag.jsp', resource not
              >> >> >found -- >
              >> >> >
              >> >> >I grepped this newsgroup and noticed a previous unanswered post of the
              >> >same
              >> >> >nature, "Static compiles do not seem to include JSP's". Except in our
              >> >case,
              >> >> >this problem also manifest for dynamic JSP compiles, happens
              >> >sporatically,
              >> >> >and only started with sp6.
              >> >> >
              >> >> >Bug???
              >> >> >
              >> >> >Gene Chuang
              >> >> >Join Kiko.com!
              >> >> >
              >> >> >
              >> >> >
              >> >>
              >> >
              >> >
              >>
              >
              >
              

  • Tomcat 4.0.x and JSP / JSTL performance problems.

    Hello everyone,
    I've got a web application where some of my JSP pages are rendering quite slowly. As an example I'll use a JSP page that I wrote for browsing through a user database. It uses two beans...
    1. jobBean - Ensures that all of the required (and correct) beans that will be used for processing the request have been loaded.
    2. browserBean - A basic JavaBean that holds a set of UserBean(s) and other information pertinent to database queries (start, limit, order).
    I'm using Apache Struts to map requests to the appropriate processing modules. Now the problem I'm having is that each request is taking between 1 and 2 seconds to execute. As you can imagine that's not going to allow for very many simaltaneous users. I've tracked the problem down to something JSP related. All of my code executes fairly quickly (I think). It takes about 20-30ms for my code to identify the request, load the requested data from the database, and convert it into a usable format (the browserBean). Here's my code...
    <%@ page contentType="text/html"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <META http-equiv="Cache-Control" content="no-cache">
    <title>
    Browse Users
    </title>
    </head>
    <body>
    <!-- Set up the OrganizationBeans for use -->
    <jsp:useBean id="jobBean" class="com.vacode.jobs.generic.JobBean" scope="session" />
    <jsp:useBean id="browserBean" class="com.vacode.mqdb.beansets.user.UserBrowserBean" scope="session" />
    <!---------------------------->
    <!-- Start Time Logged Here -->
    <!---------------------------->
    <c:if test="${jobBean.currentJob.name != 'BrowseUserJob'}">
         <!-- This page was accessed before everything was properly initialized -->
         <c:url var="browseUser" value="manageUsers.do">
              <c:param name="action" value="browse" />
         </c:url>
         <c:redirect url="${browseUser}" />
    </c:if>
    <form action="manageUsers.do" method="get">
         <input type="hidden" name="action" value="browse">
         <input type="hidden" name="start" value="<c:out value="${browserBean.dummyStart}" />">
         <input type="hidden" name="order" value="<c:out value="${browserBean.order}" />">
         I would like to view
         <select name="limit">
              <c:forEach begin="1" end="5" var="current">
                   <option value="<c:out value="${current*5}" />"
                        <c:if test="${browserBean.dummyLimit == current*5}">
                        selected
                        </c:if>
                   >
                    <c:out value="${current*5}" />
                   </option>
              </c:forEach>
         </select>
         results per page.
         <input type="submit" action="submit">
    </form>
    <c:url var="id" value="manageUsers.do">
         <c:param name="action" value="browse" />
         <c:param name="start" value="0" />
         <c:param name="order" value="USER_ID" />
         <c:param name="limit" value="${browserBean.dummyLimit}" />
    </c:url>
    <c:url var="name" value="manageUsers.do">
         <c:param name="action" value="browse" />
         <c:param name="start" value="0" />
         <c:param name="order" value="USER_NAME" />
         <c:param name="limit" value="${browserBean.dummyLimit}" />
    </c:url>
    <c:url var="firstName" value="manageUsers.do">
         <c:param name="action" value="browse" />
         <c:param name="start" value="0" />
         <c:param name="order" value="USER_FIRST_NAME" />
         <c:param name="limit" value="${browserBean.dummyLimit}" />
    </c:url>
    <c:url var="lastName" value="manageUsers.do">
         <c:param name="action" value="browse" />
         <c:param name="start" value="0" />
         <c:param name="order" value="USER_LAST_NAME" />
         <c:param name="limit" value="${browserBean.dummyLimit}" />
    </c:url>
    <c:url var="email" value="manageUsers.do">
         <c:param name="action" value="browse" />
         <c:param name="start" value="0" />
         <c:param name="order" value="USER_EMAIL_ADDRESS" />
         <c:param name="limit" value="${browserBean.dummyLimit}" />
    </c:url>
    <c:url var="organization" value="manageUsers.do">
         <c:param name="action" value="browse" />
         <c:param name="start" value="0" />
         <c:param name="order" value="USER_ORGANIZATION_NAME" />
         <c:param name="limit" value="${browserBean.dummyLimit}" />
    </c:url>
    <c:url var="status" value="manageUsers.do">
         <c:param name="action" value="browse" />
         <c:param name="start" value="0" />
         <c:param name="order" value="USER_STATUS_NAME" />
         <c:param name="limit" value="${browserBean.dummyLimit}" />
    </c:url>
    <c:url var="role" value="manageUsers.do">
         <c:param name="action" value="browse" />
         <c:param name="start" value="0" />
         <c:param name="order" value="ROLE_NAME" />
         <c:param name="limit" value="${browserBean.dummyLimit}" />
    </c:url>
    <table>
         <tr>
              <td><a href="<c:out value="${id}" />">Id</a></td>
              <td><a href="<c:out value="${name}" />">User Name</a></td>
              <td><a href="<c:out value="${firstName}" />">First Name</a></td>
              <td><a href="<c:out value="${lastName}" />">Last Name</a></td>
              <td><a href="<c:out value="${email}" />">E-Mail</a></td>
              <td><a href="<c:out value="${organization}" />">Organization</a></td>
              <td><a href="<c:out value="${status}" />">Status</a></td>
              <td><a href="<c:out value="${role}" />">User Type</a></td>
         </tr>
    <c:forEach items="${browserBean.beans}" var="bean">
         <tr>
              <c:url var="manage" value="manageUsers.do">
                   <c:param name="action" value="modify" />
                   <c:param name="beanId" value="${bean.userId}" />
              </c:url>
              <td><a href="<c:out value="${manage}" />"><c:out value="${bean.userId}" /></a></td>
              <td><c:out value="${bean.userName}" /></td>
              <td><c:out value="${bean.firstName}" /></td>
              <td><c:out value="${bean.firstName}" /></td>
              <td><c:out value="${bean.email}" /></td>
              <td><c:out value="${bean.organizationName}" /></td>
              <td><c:out value="${bean.statusName}" /></td>
              <td><c:out value="${bean.roleName}" /></td>
         </tr>
    </c:forEach>
    <!-------------------------->
    <!-- End Time Logged Here -->
    <!-------------------------->
    </table>
    <c:url var="next" value="manageUsers.do">
         <c:param name="action" value="browse" />
         <c:param name="start" value="${browserBean.nextPageStart}" />
         <c:param name="limit" value="${browserBean.dummyLimit}" />
         <c:param name="order" value="${browserBean.order}" />
    </c:url>
    <c:url var="previous" value="manageUsers.do">
         <c:param name="action" value="browse" />
         <c:param name="start" value="${browserBean.previousPageStart}" />
         <c:param name="limit" value="${browserBean.dummyLimit}" />
         <c:param name="order" value="${browserBean.order}" />
    </c:url>
    <c:if test="${browserBean.previousPageStart>-1}">
         <a href="<c:out value="${previous}" escapeXml="false" />">previous</a>
    </c:if>
    <c:if test="${browserBean.nextPageStart>-1}">
         <a href="<c:out value="${next}" escapeXml="false" />">next</a>
    </c:if>
    <br>
    <br>
    Quick Jump To Page:
    <c:forEach varStatus="loopTag" items="${browserBean.pageStartValues}" var="current">
    <c:choose>
         <c:when test="${loopTag.index+1==browserBean.currentPageNumber}">
              <c:out value="${loopTag.index+1}" />
         </c:when>
         <c:otherwise>
         <c:url var="thisPage" value="manageUsers.do">
              <c:param name="action" value="browse" />
              <c:param name="start" value="${current}" />
              <c:param name="limit" value="${browserBean.dummyLimit}" />
              <c:param name="order" value="${browserBean.order}" />
         </c:url>
         <a href="<c:out value="${thisPage}" />"><c:out value="${loopTag.index+1}" /></a>
         </c:otherwise>
    </c:choose>
    </c:forEach>
    <br>
    <br>
    Max Possible Pages: <c:out value="${browserBean.maxNumberOfPages}" />
    <br>
    Current Page: <c:out value="${browserBean.currentPageNumber}" />
    </body>
    </html>I've added comments where I timed my code from (by writing new Date().getTime() to the console). It usually takes between 1 and 2 seconds for that block of JSP to execute. I wrote a test class that should be very similar to the process (iterating over the forEach loop mainly) and it usually executed in 10ms to 20ms.
    I had a look at the servlets that were generated by Tomcat and I noticed that for each <c:url> I used there's about 300 lines of code (with several syncronized() methods). Could this have anything to do with it? If so, what could I do to improve the performance?
    Worth mentioning... The machine I am using is an AMD Athlon 1GHZ with 768MB RAM, 7200 RPM UDMA100 IDE HDD.
    I'm also using Tomcat integrated with a development environment (IntelliJ IDEA).
    Any help that anyone could offer is much appreciated.
    Thanks,
    Ryan

    Can you get acceptable performance if you hack out everything except the browserBean forEach loop? Maybe you are trying to do too much runtime EL evaluation on the page.
    If performance improves, you may want to push the URL construction and startValue computations to a Struts Action and put a bunch of objects on the requestScope (like "id_url", "name_url", "pageStartValue").
    Putting these computations in the Action would avoid having JSTL parse each of the ${} arguments, evaluating the expressions, and using costly reflection to turn ${browserBean.order} into browserBean.getOrder().

  • Dreamweaver CS3 First Run problems

    Installing Dreamweaver CS3 Saga.
    I've had some trouble and despite looking for answers and
    trying a few things I'm getting nowhere. I've included a timeline
    of events below to help explain.
    0) System: New Dell Opliplex 745 running XP Pro Sp2 and
    networked to a domain. Educational License ordered for MOPS school.
    Disk delivered.
    1) Tried installing in regular user's account. When it
    prompted for admin details, I entered them, but it didn't work.
    Insufficient rights to install, fair enough.
    2) Logged on as domain admin. Tried installing. Failed!
    Insufficient rights. Hmmm.
    3) Logged on to local computer as administrator. Installed.
    Success! However, could not find the serial number so selected
    "trial" option. All worked ok. Emailed supplier to find out why
    serial was not included with disk.
    4) Gave regular user full admin rights on computer to avoid
    future hassles.
    5) Obtained serial from supplier (it was on the invoice).
    Entered serial number while logged on as user. Dreamweaver accepted
    serial but then a blank dialog box (titled Adobe Dreamweaver CS3)
    opened over the top of the rest of Dreamweaver and froze up access
    to Dreamweaver. Can't close box, can't interact with box apart from
    moving it around over the top of DW. It doesn't count as a separate
    window in the task bar.
    6) Ended Dreamweaver process, loaded it again. Blank dialog
    box appeared yet again however Dreamweaver began some adobe
    updating. ~140mb download. Around 20mb in, some files began
    installing - so far so good. Then, adobe updater vanished and we're
    back to frozen dialog box.
    7) Restarted computer. Logged on as user again, ran
    Dreamweaver again. Frozen blank dialog box again HOWEVER I did find
    that if I was quick I could interact normally with Dreamweaver,
    open files, etc for a few seconds until dialog box kicks in. Also
    when ending the task instead of ending the process, the windows
    message says "The system cannot end this program because it is
    waiting for a response from you. To return to windows and check the
    status of the program, click cancel. If you choose to end the
    program immediately, you will lose any unsaved data. To end the
    program, click End Now." Obviously this refers to the blank dialog
    box but I can't interact with the box so I can't respond to DW.
    8) Remembering previous troubles, logged off and logged on to
    local machine as administrator. Ran Dreamweaver again. This time an
    initial dialog box asking about file associations popped up. Then,
    Adobe update began running, this time 120mb download. Once again,
    around 20mb in, some files installed and then Dreamweaver frozen
    dialog box once more is revealed. The rest of the updates are
    nowhere to be seen, adobe updater does not seem to be running any
    more.
    9) Found an issue in forums with corrupt Bonjour installation
    causing DNS trouble. Figured this might be affecting the updates,
    uninstalled the service as outlined elsewhere on this forum. Did
    not help.
    10) Decided to attempt a repair install from the disk. It
    seemed to work but then only the shared components seemed to
    install. But underneath that in the installation window, it said
    both Dreamweaver and the Shared Components failed to install. So
    did it fail or did it not fail? Your guess is as good as mine.
    11) Ran Dreamweaver again. This time, a green "scrolling
    credits" style window appeared, with "Click here to continue". Upon
    clicking, the credits window disappeared and all looked well. I
    alt-tabbed to something else but when I went back into Dreamweaver
    the blank dialog window was back again.
    I've searched the net, and scanned these forums but I am
    unable to find a similar issue or any clue as to how to proceed
    next.
    I am going to try to uninstall Dreamweaver and reinstall it
    fully, while logged on as local admin, probably I will use the CS3
    clean script that I found on the forums to make sure its all gone;
    and then I will enter the serial at the same time as installation
    to avoid ever triggering the trial installation conditions. In the
    meantime if anyone has any suggestions feel free to chip in with
    ideas.
    PS Further information which I just remembered: Internet
    access is restricted by a proxy. Adobe updater worked fine after
    giving it username and password to log on to the proxy. Perhaps
    this frozen screen is trying to access the internet?

    Further information - when I tried to uninstall I was advised
    by the uninstaller that I should deactivate CS3. But I couldn't
    find how to do that in the few seconds before everything freezes.
    I had an inspiration to pull the network plug out and sure
    enough, the frozen window became a window which reads:
    Dreamweaver is unable to connect to the internet to register
    your product. I selected "Register Never" so hopefully this will
    fix my problem!

  • Office 2013 Home and Business OEM First Run screen

    Hi There
    We are starting to roll out office 2013 oem Home and Business our users are reporting that the first run screen get coming up every time there open an office application.
    In Group Policy I've disable the First Run Movie and Office First run on application boot however the users are still getting to first run screen this is every annoying.
    Any help with would be great?
    Cheers,
    Brett

    The policy setting should work: it correctly adds bootedrtm=1 value to HKCU\Software\Policies\Microsoft\office\15.0\firstrun. But for some reason Office apps ignore it. I tried disabling the entire policy, then go through the welcome screen. After finishing
    with it, office created the same value, but in another place (HKCU\Software\Microsoft\Office\15.0\FirstRun), and the screen never appeared anymore.
    So to make the setting work, you have to manually create registry setting (via GPO preference) with the following data:.
    [HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\FirstRun]
    "BootedRTM"=dword:00000001
    P.S. this was pretty easy, but did anyone look at disabling the EULA prompt? The acceptance is marked by creating a registry key for each user, but the path contains computer name :)) Therefore if all users of the PC have accepted the agreement, and you
    renamed the computer, the popup comes back again. And of course group policy is impossible with such path.

  • Applescript freezes upon first run when getting 'text of document 1 of application "Safari" '

    I'm working on an applescript that searches the text of a Safari web page for specific text.  The script  freezes / hangs / times out ONLY during the "first run".  By "first run"  I mean the first time the script is run after a period of time has passed. If the script is run a 2nd, 3rd, or 4th time, etc soon thereafter it works perfectly.  If you then wait an extended period of time again, the script freezes exactly as if it were a "first run".  This appears to be independent of whether Safari is open or closed, i.e. the script freezes even if Safari remains open between the last working run and the "first run".
    Details:
    A web page is opened.  I subsequently confirm the page is fully loaded with the following code set-up as a handler:
    tell application "Safari"
         repeat with i from 1 to 15
         if (do JavaScript "document.readyState" in current tab of window 1) is "complete" then
                             exit repeat -- page loading is complete, exiting loop     
         else
                             delay 1
         end if
         end repeat
         if i is greater than or equal to 15 then return false
         if i is less than 15 then return true
    end tell
    The Applescript event log confirms loading is complete and returns a value of true.  I can see the page is fully loaded, and in testing it is fully functional. All is good.
    I then search the text of the fully loaded web page for specific text.  It is this next step where Applescript hangs, but ONLY on the "first run":
    set searchTerm to "find this"
    if text of document 1 of application "Safari" contains (searchTerm as string) then
         -- do stuff
    end if
    The event log shows that applescript starts to "get every text of document 1" and even returns the initial text of the web page but hangs.  Applescrpt returns the following error: "Safari got an error: AppleEvent timed out.  Error -1712".  If I rerun the script at this point the full text of the web page is immediately displayed in the event log, and the script continues succesfully to the end.  The "IF" statement is not the issue per se because I get the same error if I remove the IF and instead set a variable to the value of 'text of document 1 of application "Safari".
    Bottom line - Applescript seems to hang while returning the text of the fully loaded web page, but ONLY on "first run". Any ideas?
    Note:  I've run this directly as an applescript and as a service via Automator.  Same result. I also tried putting the computer to sleep briefly, wake and rerunning the script.  This does not repeoduce the problem so while extended gaps in use cuases the problem, it does not appear that going to sleep during this time is sufficient to cause the issue.

    Thank you twtwtw, very helpful!
    I tried fiddling around with the name of the input variable(s): $@, $0, and $1, and although I could get it to work somewhat, the hangup was always on high ASCII characters like …, —, °, etc…  (They were called “high ASCII” in the old days, perhaps they are called something else now.)
    Checking the long list of output encodings via iconv --list, and trying a bunch of them didn’t work for me.
    But the real trick that worked for me was to do as you said and to change the “Pass input” menu to “to stdin.”
    However, using -t ASCII was suboptimal for high ASCII, so I changed it to -t UTF-8-MAC and it works perfectly now, all the wild international characters and punctuation are maintained! Hooray!  However, upon further testing, removing the pipe to iconv, it seems it’s not needed.
    So this is the final command:
    awk 'BEGIN{print "<ul>"} {print"<li>"$0"</li>"} END{print "</ul>"}'
    So for now this is the whole recipe to create Contextual Menu Items for the Services menu that replaces text snippets with HTML code surrounding them.
    1. Create a new Automator Service document.
    2. Check the box “Output replaces selected text.”
    3. Choose Actions, under Library choose Utilities, then drag Run Shell Script to the working area of the window.
    4. Set the Pass input menu to “to stdin.”
    5. Paste in the command (above).
    6. Save it; I prefix my HTML CMIs with HTML (space space), so this one is, “HTML  unordered list.”
    7. Begin using it. :-)
    Since it took me a while to cobble together the other ones I made, I should probably share them.  Once I get the time to bring over the other “involved” ones I’ll see if I can find out where is the best place to do that.
    Thank you both, red_menace, and twtwtw for your help!

  • How to use servlets and JSP for my homepage?

    servlets and JSP are server-side program. If my homepage is on some web-hosting websites, can I upload the servlets and JSP to run it? if possible, where can I find such a web-hosting place?
    sraiper

    Not many hosts offer JSP or Servlet support (and some do but then stop and never give you a refund, grrrrrrr!!!!).
    Also, ones that do support it can often be more expensive. There are some free ones but all the one's I've come across have problems that made them unsuitable for my needs.
    Here is a list of hosts that support Java:
    http://www.thejspbook.com/resources/category.jsp?id=1005&name=JSP+web+hosting
    I can't comment on any from that list, however I use http://www.positive-internet.com they are a bit pricey but they have excellent support and are always happy to help with any Tomcat (the JSP/Servlet server they use)configuration issues or needs that you may have.

  • Problem with this new version is when i open firefox something change my home page to mozila defalut page and in the new tab open mozila firefox first run page.Sorry for my bad English

    Problem with this new version is when i open firefox something change my home page to mozila defalut page and in the new tab open mozila firefox first run page.Sorry for my bad English

    Sounds like this issue:
    * http://kb.mozillazine.org/Preferences_not_saved
    * [[Preferences are not saved]]

  • I have a new Macbook pro and need to run some Windows software, it appears "Parallel" should work well from what I've have read. Will I have any issues or problems accessing and printing from various printers on my Windows 7 network within Parallel?

    I have a new Macbook pro and need to run some Windows software, it appears "Parallel" should work well from what I've have read. Will I have any issues or problems accessing and printing from various printers on my Windows 7 network within Parallel? Is Parallel in fact the best way to go?

    First, back up all data immediately, as your boot drive might be failing.
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • My 27" 2010 iMac  has recently began freezing and movement on the display is molasses slow. We have 500 gigabytes available and no applications running and the problems still persist. Any advice?

    My 27" 2010 iMac  has recently began freezing and movement on the display is molasses slow. We have 500 gigabytes available and no applications running and the problems still persist. Any advice?

    IF your system is running extremely slow with no applications running other than Finder then I'd suspect a failing HD or you have a runaway process somewhere. Open Activity Monitor (Applications - Utilities - Activity Monitor) and look to see if you have any applications taking a large %CPU, if you do that is your problem. To test the HD run Apple Hardware Test, please read:
    http://support.apple.com/kb/HT1509
    to learn how to run AHT on your machine, also run it in EXTENDED MODE so it does the most complete test. If no errors are found after the first pass run it another 2-3 times to be thorough.

  • I updated to ios 7 2 days ago and I synced with my computer for the first time yesterday. Most of my calendar appts and events were wiped off my phone but are still on the computer. I use outlook 2010 and a pc running windows 7.

    I updated my iphone 5 to  ios 7 two days ago and I synced with my computer for the first time yesterday. Most of my calendar appointments and events were wiped off my phone but are still on the computer. I use outlook 2010 and a pc running windows 7. Rebooting the phone and the computer failed to remedy the calendar sync problem.

    Easy solution for restoring lost calendar informaiton, thank goodness.  On your iPhone, go to settings, then to iCloud.  If your Calendar selection is turned off,  turn it on.  Your info should restore.  If your Calendar selection is turned on, then turn it off.  Choose to save calendars when asked.  After it shuts the Calendar off, turn it back on.  Your info should be restored.
    Thank you to Apple support for walking me through this.  Shame on you Apple for not just telling people about this easy fix rather than making us go through all of this pain and worry.
    - JT

  • I need advise and help with this problem . First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product . At the present time I'm having lots of problems with the router so I was looking in to

    I need advise and help with this problem .
    First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product .
    At the present time I'm having lots of problems with the router so I was looking in to some info , and come across one web site regarding : port forwarding , IP addresses .
    In my frustration , amongst lots of open web pages tutorials and other useless information , I come across innocent looking link and software to installed called Genieo , which suppose to help with any router .
    Software ask for permission to install , and about 30 % in , my instinct was telling me , there is something not right . I stop installation . Delete everything , look for any
    trace in Spotlight , Library . Nothing could be find .
    Now , every time I open Safari , Firefox or Chrome , it will open in my home page , but when I start looking for something in steed of Google page , there is
    ''search.genieo.com'' page acting like a Google . I try again to get raid of this but I can not find solution .
    With more research , again using genieo.com search eng. there is lots of articles and warnings . From that I learn do not use uninstall software , because doing this will install more things where it come from.
    I do have AppleCare support but its to late to phone them , so maybe there some people with knowledge , how to get this of my computer
    Any help is welcome , English is my learned language , you may notice this , so I'm not that quick with the respond

    Genieo definitely doesn't help with your router. It's just adware, and has no benefit to you at all. They scammed you so that they could display their ads on your computer.
    To remove it, see:
    http://www.thesafemac.com/arg-genieo/
    Do not use the Genieo uninstaller!

  • How can I disable the 'First Run' and 'Whats New' pages from showing after updating Firefox for all users that log onto a system.

    I am a system administrator and need a way to set a global preference to not open the Whats New and first run pages. I found the browser.startup.homepage_override.mstone preference in the user profile but want to be able to set this globally.

    Use a mozilla.cfg file in the Firefox program folder to lock prefs or specify default values.
    Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.
    pref("general.config.filename", "mozilla.cfg");
    pref("general.config.obscure_value", 0); // use this to disable the byte-shift
    See:
    * http://kb.mozillazine.org/Locking_preferences
    You can use these functions in mozilla.cfg:
    defaultPref(); // set new default value
    pref(); // set pref, but allow changes in current session
    lockPref(); // lock pref, disallow changes
    *http://kb.mozillazine.org/browser.startup.homepage_override.mstone

  • TS4088 why is there a limit on 3 years? it should be all the MacBook Pro mid 2010 with symptoms, there should get their logic board changed for free, mine mac is 3 month late and i had this problem for over a year, but i first saw this article today :(

    it should be all the MacBook Pro mid 2010 with symptoms, there should get their logic board changed for free, mine mac is 3 month late and i had this problem for over a year, but i first saw this article today

    Hey Clintonfrombirmingham
    I called Apple technical support in Denmark, but with no positive reply.
    She couldn't do anything, and said that They had sent a recall Email about the problem and with their offer to repair the Macbook Pro, but I'd never recieved an Email about the problem. She wasn't in power to make an exception. It can't be true that i paid a lot of money, for a product that can't barely stand on its own feets, Apple didn't tell me that the product I was about to buy, would restart every 5 minute. and now when  they know the problem, they wont repair it? it just don't make sense for me. If a car seller discovers that all the brakes in a car he had sold, will crash after some years he will call all the cars back to repair no mater what. i just don't understand how Apple will make good service for their custumers, by extending the warranty from 2 to 3 years, but wont take the computers there is a little bit to old, 4 months will make the difference. i can't believe it.
    What can i do now? 
    best regards Oskar

  • Distinguishing First Run and Rerun for DVR Recording

    If you want to record a series, not just a single show, the only choice you have is to record BOTH First-Run episodes AND Reruns.  I note that Direct TV users and TiVo users have a choice when recording a series by selecting First Run Only or First Run and Repeats.  Without this discriminate, shows that repeat habitually throughout the day and week are recorded.  This is a major inconvenience if your recording are almost exclusively series TV shows.  It becomes very inconvenient for series broadcast on HBO, where throught the week multiple series and reruns--for example Boardwalk Empire--are all playing in a single week.  The lack of this feature--that other services already have--is a major shortcoming.

    Something odd there.  Which DVR model?
    Should be press DVR button scrool to manage series recordings, press right, scroll to show, press ok,  (options including change priority, modify series and cancel series.  Modify Series. press ok.  Options on that include episodes (first run only/first run and repeats). Scroll to episodes, press enter, change as desired, press ok, push right to save, press ok. close menus, may have to do repeated exits.
    You may also want to find the dvr settings to set your default options for creating series recordings.  menu/settings/system/dvr/default series options

Maybe you are looking for

  • No Data in Downtown Los Angeles

    For the last 6 months or so, I have been experiencing 0 data in Downtown Los Angeles.  Specifically on 9th and Grand.  I have reported it three times and have not heard of any solution yet.  I did my own researching here in our building and I found o

  • No response port in routing service, when invoking Asynchronus BPEL process

    Hi All, I have a routing service and invoked an asynchronous BPEL process through SOAP invocation service. I have mentioned as Asynchronous process in the routing service. But I don't see any port for the response message. I need the response message

  • Flash, ActiveX and FlashVars

    Hello everybody. I looked in the forums and searched, but so far I got no solution. Is there a simple js that takes flashvars? Or I have to do it all over again? (since is all working with flashvars)

  • Firmware 7.4.1 stops 11n TC  extended 5G mode from connecting 2 hidden SSID

    Guys if you have any clues please post. Seems the new 7.4.1 firmware has a defect in it that causes an  TC time capsule (timecapsule) that is in extended wireless mode @ 5G from connecting to a 5G network that is hidden (closed network). TC does NOT

  • Problem printing with Lightroom using Vista

    I just recently upgraded my XP system to a Vista 64 bit system. I print digital photos using Adobe Lightroom 1.4. With my XP system, I had a good match between my calibrated monitor (NEC 2690) and my printer (HP B9180) working in the ProPhoto RGB col