Further help with regex

Hi,
I want to detect the presence of "fromCharCode" in a String.
But only when it is not preceded by "String." and not followed by "(34)".
I have already managed to do the "String." with this regex: (?<!string\.)fromCharCode --> uses the negative look behind
This will detect the "fromCharCode", but not when it is preceded by "String.".
But I don't know how to do the "(34)" ?
Can somebody help me with this?

thanks, but the problem with this regex now is that "fromCharCode" is not detected in the String fromCharCode(34) and the String String.fromCharCode.
The text "fromCharCode" must only be detected when not preceded by "String." AND not followed by "(34)".
Can you do this?

Similar Messages

  • Further help with sound please

    further help with the sound.
    i have a sound in stage channel 1 which i want to play as soon as the movies starts. and the user is able to control it by pressing the pause button
    property pPaused
    on beginSprite me
    pPaused = 0
    end
    on mouseUp me
    if pPaused then sound(1).play()
    else sound(1).pause()
    pPaused = not pPaused
    end
    i have  other sounds in songs (2 sounds ) and nursery rhymes (4 sounds ) with the behaviour added to the buttons as below etc,
    on mouseDown me
      sound(5).play( member("ABCSong") )
    end
    on endSprite me
      sound(5).stop()
    end
    this stops the sound playing when i leave the frame but doesn't stop the sound in the stage channel 1.
    i only want to play 1 sound at a time perferly when the button is pressed and stop 
    could anyone  please advise of how to solve this problem. only using intermediate/basic lingo as i need to understand it.
    any help is much appreciated
    thank you

    Try:
    on mouseDown me
      sound(1).pause()
      sound(5).play( member("ABCSong") )
    end
    on endSprite me
      sound(1).play()
      sound(5).stop()
    end

  • Help with REGEX to block invalid characters

    I have a regex that is used to block unusual characters from being entered into a user name, so they can put pipes etc in there, I just want 0-9 and a-z (upper or lowercase), but I just noticed that it's not working. I am not up to speed on regex, I took this from somewhere else
    here is the expression:
    <cfif len(trim(ReReplaceNocase(form_username, '^[A-Za-z][A-Za-z0-9_]*', '', 'ALL'))) gt 0>
    It is failing when I enter 2kljlkll3456 as the username
    Anybody have any idea why it's not working?
    After posing this I found out that the issue is that it does not allo me to have a username that starts with a number, only a letter, anybody have any idea how to fix that?
    Thanks
    Mark

    Hey Dan,
    I found a link that explained how the regex is actually formed which helped!
    http://stackoverflow.com/questions/336210/regular-expression-for-alphanumeric-and-undersco res
    Now I have managed to get a basic understanding of how they are formed the fix was easy
    I had:
    <cfif len(trim(ReReplaceNocase(form_username, '^[A-Za-z][A-Za-z0-9_]*', '', 'ALL'))) gt 0>
    But should have had
    <cfif len(trim(ReReplaceNocase(form_username, '^[A-Za-z0-9_]*', '', 'ALL'))) gt 0>
    Simply removing [A-Za-z] from the start fixed it. I get it now ... so the first section defined the first character which was restricted to A-Za-z only.
    I'll mark this as answered
    Thanks
    Mark

  • Need help with Regex

    Still trying to solve a problem in Dreamweaver - and think that using Regex is the way to go - but never used it before
    I have 2 tables on 4000 pages and want to delete 1 table from each page but they have different links and content etc
    The 2 tables on each page  are also distinguished by different table widths
    If the table I want to delete looks like this example below - what Regex do I use to make the find and replace delete only the table with <table width=100%>
    <table width="100%"><tr><td><a href="aberley.htm"><font size="-7">aberley</font></a></td></tr></table>
    Many thanks

    Thanks Nancy O - you are a Star - have tried it out and it worked perfectly
    - and this will new piece of knowledge will save me many many hours of work
    I had no previous knowledge of that Find and Replace Special Tags option
    Thanks again for your help - it is greatly appreciated

  • Help with regex. How to escape "|"

    Hi, this is my code:
    String line = "00001740 00 a 01 able 0 003 = 04866033 n 0000 = 05262099 n 0000 ! 00002062 a 0101 | (usually followed by `to') having the necessary means or skill or know-how or authority to do something; "able to swim"; "she was able to program her computer"; "we were at last able to buy a car"; "able to get a grant for the project"  ";
    //I want to capture with group(0) only the first half og the line, that preceeding "|".
    //Could anyone help me figure out why this piece of code does not work ?
    String patternStr = "(.*?)|(.*?)";
        Pattern pattern = Pattern.compile(patternStr);
        Matcher matcher = pattern.matcher(line);
        boolean matchFound = matcher.find();
        if (matchFound){
             relLine  = (String)matcher.group(0);
             System.out.println("LINE " + relLine);
             } else {
            System.out.println("ATTENTION MATCH WAS NOT FOUND FOR LINE " + line);
                  }

    "\\|"You need to use the backslash.
    However, since backslash is also a special character in a Java String literal, you need two of them. The first one gets eaten by the compiler, escaping the second one, which is used by regex to escape the pipe.

  • Please help with regex

    Hi
    I want regex for following condition:(case insensitive)
    1)First letter must be always an alphabet(case insensitive).
    2)It should be maximum of 64 characters.
    3)Rest all letter can be number alphabets and underscore.(case insensitive)
    4)Defines an inverse domain name like "com.sun.yyyy.xxxx". Restricted to max 20 dot-separated identifiers of max. 30 chars each.
    5)After . there must not be number for eg com.sun.1awt is not valid.

    Not properly tested, but here goes:
    // some tests
    String[] tests = {
      "com.sun.yyyy.xxxx",
      "com.sunsd.yy435yy.xxxx",
      "com.sun.yyyy.5xxxx",
      "com.sun.yyyeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeey.xxxx",
      "com.sun.yyyy..xxxx"
    // An atom must start with a letter follwed by 0 to 29 numbers, letters or underscores
    String atom = "[a-z][a-z0-9_]{0,29}";
    String regex =
      "(?i)"+                  // ignore case
      "(?=^.{1,64}$)"+         // must be between 1 and 64 characters
      atom+                    // start atom
      "(?:\\."+atom+"){0,19}"; // followed by 0 to 19 atoms with a '.' in front of it
    for(String t: tests) {
      System.out.println(t.matches(regex)+" -> "+t);
    }

  • Help with regex

    Hi,
    I have an expression like this
    <select name="contact_list">
    <option value="SS109445168429566">Mark
    <option value="SS109445173826096">Keith
    </select>
    this is not in its entire state, i have trimmed the expression to make it a bit readable
    no what i want is both the options value to be extracted and stored in a value i am using the pattern like this to do the same
    pattern="(?s)(?i)<option value="(.*?)""
    but i am always getting th first value only, whereas i want both the values.
    Can anyone help me on this.
    Thank you in advance

    How are you using the regex?  Pattern p = Pattern.compile("(?is)<option value=\"(.*?)\"");
      Matcher m = p.matcher(input);
      while (m.find())
        System.out.println("value is " + m.group(1));
      }That should work.

  • I need help with Regex, please !

    Hello,
    I would like to build the following expression: I want matcher a succession of words (e.g. separated by 1 space), but not containing a specifc word.
    Let's me give you an example to be more explicit:
    String regex = "([\\S]+ )+"; that exprisses a succession of words, but I want to supplement my regular expression (regex) to indicate that I don't want the word "MANU" for example.
    string input = "TUTU TATA TITI MANU TOTO TITI TATA MANU"
    I would like the following results:
    "TUTU TATA TITI MANU"
    "TOTO TITI TATA MANU"
    but not these one:
    "TUTU TATA TITI MANU TOTO TITI TATA MANU"
    Thank you for your answers

    Right, I forgot that the matcher would bump along and try "(?!MANU\\b)\\S+" at the second letter of each group. The solution is to use \w instead of \S, and anchor the match at the beginning of the word with \b:import java.util.regex.*;
    public class Test
      public static void main(String[] args)
        String target = "TUTU TATA TITI MANU TOTO TITI TATA MANU";
        Pattern p = Pattern.compile("(?!MANU\\b)\\b\\w+(?: (?!MANU\\b)\\b\\w+)*");
        Matcher m = p.matcher(target);
        while (m.find())
          System.out.println(m.group());
    }

  • Help with regex pattern matching.

    Hi everyone
    I am trying to write a regex that will extract each of the links from a piece of HTML code. The sample piece of HTML is as follows:
    <td class="content" valign="top">
         <!-- BODY CONTENT -->
    <script language="JavaScript"
    src="http://chat.livechatinc.net/licence/1023687/script.cgi?lang=en&groups=0"></script>
    <a href="makeReservation.html">Making a reservation</a><br/>
    <a href="changeAccount.html">Changing my account</a><br/>
    <a href="viewBooking.html">Viewing my bookings</a><br/>I am interested in extracting each link and the corrresponding text for that link into groups.
    So far I have the following regex <td class="content" valign="top">.*?<a href="(.*?)">(.*?)</a><br>However this regex only matches the first line in the block of links, but I need to match each line in the block of links.
    Any ideas? Any suggestions are appeciated as always.
    Thanks.

    Hi sabre,
    thanks for the reply.
    I am already using a while loop with matcher.find(), but it still only returns the first link based on my regex.
    the code is as follows.
    private static final Pattern MENU_ITEM_PATTERN = compilePattern("<td class=\"content\" valign=\"top\">.*?<a href=\"(.*?)\">(.*?)</a><br>");
    private LinkedHashMap<String,String> findHelpLinks(String body) {
        LinkedHashMap<String, String> helpLinks = new LinkedHashMap<String,String>();
        String link;
        String linkText;
          Matcher matcher = MENU_ITEM_PATTERN.matcher(body);
          while(matcher.find()){
            link = matcher.group(1);
            linkText = matcher.group(2);
            if(link != null && linkText != null){
              helpLinks.put(link,linkText);
        return helpLinks;
    private static Pattern compilePattern(String pattern) {
        return Pattern.compile(pattern, Pattern.DOTALL + Pattern.MULTILINE
            + Pattern.CASE_INSENSITIVE);
      }Any ideas?

  • Help with RegEx and Textinput

    I have the following method:
    public function handleKeyPress(event:KeyboardEvent):void {
    //trace("Key pressed: "+event.keyCode+","+event.charCode);
    var testTest:String = cComponent.cInput.text +
    String.fromCharCode(event.keyCode);
    trace("Text tested: \""+testTest+"\"");
    // See if the user typed '/' followed by a number and a
    space
    if(testTest.match(new RegExp("\/[0-9]*\s"))) {
    // User typed '/### '
    // TODO: Get bpname and do something here...
    cComponent.cInput.text="";
    event.stopImmediatePropagation();
    Basically, I need to match on the pattern "/### ", where ###
    is any series of numbers, do something, then clear the TextInput,
    but I can't seem to get the RegEx right. I have tried several
    different ones, including '\/\d*\s' and '\/[0-9]* ', but nothing
    seems to work.
    On top of this, the call to cComponent.cInput.text="" doesn't
    wipe the value of the TextInput field either.
    Can someone point me in the right direction?

    This got me mostly working. It's still matching on all
    strings that start with / then some number, but I still cannot get
    that TextInput to clear. From the code I call:
    cComponent.cInput.text="";
    It doesnt throw an error, but it doesn't clear the text
    either.

  • Help with Regex for service-http

    Hi folks,
    I'm trying to write a custom sig to match on certain values found in an HTTP GET request. The sig uses the service-http engine for TCP on standard WEBPORTS. For the sake of this example, lets say the string I'm looking for it:
    first=<somedata>&second=<somedata>&third=<somedata>
    In other words, if I see those three argument names (first, second, and third) then I want the sig to fire. The actual values of <somedata> is irrelevant.
    The RegEx I'm using is:
    ((first=).*(&second=).*(&third=).*)
    However the sig is firing on requests that just match on seeing "&third" in the HTTP GET. Again, I need -all three- arguments present for the sig to fire.
    Any suggestions? Am I on the right track with the regex?
    Thanks!!

    Ok, replying to my own post here, but I was able to resolve this issue. The regex does work as designed. I think to be safe I should add brackets to make it case-insensitive (e.g. (([Ff][Ii][Rr][Ss][Tt]=) ) but otherwise this matches the intended traffic.

  • Help with regEx or any other idea ....

    my program reads from the keyboard... if there is a character like K the description is printed ... but if there is also a number between 2.....10 and K then the number should be printed too
    example :
    reading from keyboard: 4K
    then 4 + description of K should be printed
    I tried this:
    else if(n.equals("S") && notationShort.containsKey("S")|| (n.equals.{2,10})
         {System.out.println(notationShort.get("S"));}but its not working ... can someone help please?
    thank you in advance!

    sabre150 wrote:
    new_in_JAVA_but_soon_not wrote:
    not sure if someone understand my question ?? or no one know how to solve it?
    hmmmHmmm - I certainly don't fully understand what you are trying to do. It seems to me you want to test for some digits followed by one of a set of letters. If this is the case then what set of letters and how many digits. Also, can other things come before the digits or follow the letter?
    You need to think a bit more about your questions if you expect any answer other than a wild guess.ok how can i write in regular expression the range between 2..10 ?

  • Need help with Regex replace in DW

    I'm converting a document to HTML that came with mixed case image filenames.  Our standards say that all filenames must be lowercase, so I used a CF script to convert them, but the src links in the HTML doc tag still shows the uppercase name.
    I planned to do something like this:
    Find:
    <img src="(.+?)" alt="(.+?)" />
    Replace:
    <img src="$1" alt="$2" />
    but I can't seem to get it to lowercase the $1 argument.  I've tried \L and all the normal things, but I just get the literal replacement.  Any tips?

    Use Regular Expressions
    "Big_Slick" <[email protected]> wrote in
    message
    news:f0ip6t$ee8$[email protected]..
    >I need to know how to Find/Replace for more than one tag
    at a time
    >(I.E--Search
    > for <table>, <tr>, and <td> or
    and and remove the code) As it is
    > right
    > now, it will only search for one tag at a time but I
    would assume DW can
    > handle
    > this kind of thing.
    >
    > Thanks in advance.
    >

  • Pls help with RegEx

    Hello,
    I can't figure out how to write a simple regex.
    For example I have a String ("12345678") and I'd like to find out whether my String contaings "456".String str1 = "12345678";
    String str2 = "456";
    System.out.println(str1.matches(?)); // what is the right regex to find out if str1 contains str2?

    For such a simple example, regex is overkill. You could just test for String.indexOf("456") >= 0
    However, to answer your question, the expression would be:
    .*456.*

  • Need help with Struts on J2EE 1.4

    Using deploytool, I deployed one of the examples from
    the struts 1.1 rc1 distribution. The WAR file deployed
    successfully, but accessing the page results in the
    exception below.
    Is this a security issue? If it is, where and how do
    I need to change permissions? If it's not, what else
    did I forget?
    Any help is appreciated.
    Andreas
    INFO: Application Struts_Blank deployed.
    INFO: Processed tld /WEB-INF/struts-html.tld 297
    SEVERE: Added certificates -> request attribute Valve
    WARNING: The SecurityManager do not allow that operation.
    org.apache.jasper.JasperException: null(-1,-1) File "/tags/struts-logic" not found
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:95)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:440)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:192)
         at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
         at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:473)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1400)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:159)
         at org.apache.jasper.compiler.ParserController.parseFile(ParserController.java:233)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:164)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:259)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:409)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:570)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.util.SecurityUtil$1.run(SecurityUtil.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
         at org.apache.catalina.util.SecurityUtil.execute(SecurityUtil.java:210)
         at org.apache.catalina.util.SecurityUtil.doAsPrivilege(SecurityUtil.java:147)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:271)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)
    WARNING: StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: null(-1,-1) File "/tags/struts-logic" not found
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:95)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:440)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:192)
         at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
         at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:473)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1400)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:159)
         at org.apache.jasper.compiler.ParserController.parseFile(ParserController.java:233)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:164)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:259)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:409)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:570)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.util.SecurityUtil$1.run(SecurityUtil.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
         at org.apache.catalina.util.SecurityUtil.execute(SecurityUtil.java:210)
         at org.apache.catalina.util.SecurityUtil.doAsPrivilege(SecurityUtil.java:147)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:271)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)

    I got a little further.
    First I thought that there were no changes to the WAR file,
    but then I realized that deploytool had changed it and this
    is where it got messed up:
    There was an innocuously looking entry <jsp-config/> that
    deploytool had generated, followed by the list of taglib
    elements, so instead of being wrapped within the jsp-config
    element as is now required by the 2.4 web-app schema, they
    were still listed in the 2.2/2.3 style, and thus could not
    be found.
    I am now getting another exception (see below).
    I also noticed that there is a second (older) struts.jar
    file in the lib/system directory, which may get in the way.
    Does anyone know what the classpath looks like that is
    being used by the web container?
    Further help with this and the exception is still welcome.
    Andreas
    javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:561)
         at org.apache.jsp.Welcome_jsp._jspService(Welcome_jsp.java:87)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.util.SecurityUtil$1.run(SecurityUtil.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
         at org.apache.catalina.util.SecurityUtil.execute(SecurityUtil.java:210)
         at org.apache.catalina.util.SecurityUtil.doAsPrivilege(SecurityUtil.java:147)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:727)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:464)
         at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:116)
         at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:131)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:348)
         at org.apache.struts.actions.ForwardAction.perform(ForwardAction.java:161)
         at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.util.SecurityUtil$1.run(SecurityUtil.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
         at org.apache.catalina.util.SecurityUtil.execute(SecurityUtil.java:210)
         at org.apache.catalina.util.SecurityUtil.doAsPrivilege(SecurityUtil.java:147)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:271)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)

Maybe you are looking for

  • How can I permanently delete files from my Mac before I give it away?

    I would like to get rid of any pictures, term papers, emails, but keep the Adobe Photoshop on there that I downloaded from iTunes. I'm sure someone would enjoy it.

  • Report script doesn't work

    Hello everyone, Not sure what I am doing but for some reason my report scrip doesn't seem to be working. I can't understand why, the syntax is correct as far as I can see. <Column (Sparse1) Sparse1 <Row (Dense1,"S2,D2,S3,S4,S5,S6,D3,S7) D1 - L0 membe

  • Java-Excel program not working

    Hi, Can anyone Help me? Below is a small code snippet i used to read an excel file using the POI-HSSF API import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.hssf.usermodel.HSSFRow;

  • Sales order block for delivery

    How to put delivery block to existing open sales order for particular sold to party(customer). Is there  any table or TCode where we can put multiple sales order to put this block. Dont tell VD05 bcos that will apply only to new sales order not to ex

  • E-Rec CANDIDATE SEARCH  (debug)

    I go "candidates search" (un filtered by nothing) and does not leave any results. I want to debug to find out you're looking for the system. Which program or function  can i used for debug  in SAP R3? Greetings