TomEE
  1. TomEE
  2. TOMEE-436

Getting SEVERE: OpenEJBContextConfig.processAnnotationsFile: failed. on Windows

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.5.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows

      Description

      SEVERE: OpenEJBContextConfig.processAnnotationsFile: failed.
      java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 3
      C:\Java\apache-tomee-webprofile-1.5.1\wtpwebapps\app-name\WEB-INF\classes
      ^
      at java.util.regex.Pattern.error(Pattern.java:1713)
      at java.util.regex.Pattern.escape(Pattern.java:2177)
      at java.util.regex.Pattern.atom(Pattern.java:1952)
      at java.util.regex.Pattern.sequence(Pattern.java:1885)
      at java.util.regex.Pattern.expr(Pattern.java:1752)
      at java.util.regex.Pattern.compile(Pattern.java:1460)
      at java.util.regex.Pattern.<init>(Pattern.java:1133)
      at java.util.regex.Pattern.compile(Pattern.java:823)
      at java.lang.String.replaceFirst(String.java:2146)
      at org.apache.tomee.catalina.OpenEJBContextConfig.getSubPackage(OpenEJBContextConfig.java:192)
      at org.apache.tomee.catalina.OpenEJBContextConfig.processAnnotationsFile(OpenEJBContextConfig.java:151)
      at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1296)
      at org.apache.tomee.catalina.OpenEJBContextConfig.webConfig(OpenEJBContextConfig.java:89)
      at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

        Activity

        Hide
        Romain Manni-Bucau added a comment -

        Hi, can you give it a try removing dot from path please?

        Show
        Romain Manni-Bucau added a comment - Hi, can you give it a try removing dot from path please?
        Hide
        Andrei Militeev added a comment -

        Hello. From where exactly do you want me to remove the dot? This happens at the server's startup, and I guess the server determines this path internally.

        Show
        Andrei Militeev added a comment - Hello. From where exactly do you want me to remove the dot? This happens at the server's startup, and I guess the server determines this path internally.
        Hide
        Andrei Militeev added a comment -

        Or do you mean change the path and removing dots from this directory: webprofile-1.5.1 ?
        Well, I can try that on Monday... but are you sure this is relevant? It complains about character near index 3...

        Show
        Andrei Militeev added a comment - Or do you mean change the path and removing dots from this directory: webprofile-1.5.1 ? Well, I can try that on Monday... but are you sure this is relevant? It complains about character near index 3...
        Hide
        Romain Manni-Bucau added a comment -

        You are right, the : is the issue.

        normally that's fixed on trunk.

        note: this part should be refactored pretty soon

        Show
        Romain Manni-Bucau added a comment - You are right, the : is the issue. normally that's fixed on trunk. note: this part should be refactored pretty soon
        Hide
        Romain Manni-Bucau added a comment -

        just refactored this part, please give it a try tomorrow with the 1.5.1-SNAPSHOT

        Show
        Romain Manni-Bucau added a comment - just refactored this part, please give it a try tomorrow with the 1.5.1-SNAPSHOT
        Hide
        Andrei Militeev added a comment -

        I'm getting below error now at the startup:

        SEVERE: Unable to deploy collapsed ear in war StandardEngine[Catalina].StandardHost[localhost].StandardContext[/app-name]
        java.lang.ClassCastException: org.apache.openejb.assembler.classic.ClassListInfo cannot be cast to java.lang.Comparable
        at java.util.TreeMap.put(TreeMap.java:542)
        at java.util.TreeSet.add(TreeSet.java:238)
        at org.apache.openejb.config.AppInfoBuilder.buildWebModules(AppInfoBuilder.java:369)
        at org.apache.openejb.config.AppInfoBuilder.build(AppInfoBuilder.java:261)
        at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:853)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
        at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
        Oct 1, 2012 10:44:51 AM org.apache.catalina.core.ContainerBase removeChild
        SEVERE: ContainerBase.removeChild: destroy:
        org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_destroy]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/app-name]] in state [STARTING_PREP]
        at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408)
        at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298)
        at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:977)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:956)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:797)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
        at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)

        Show
        Andrei Militeev added a comment - I'm getting below error now at the startup: SEVERE: Unable to deploy collapsed ear in war StandardEngine [Catalina] .StandardHost [localhost] .StandardContext [/app-name] java.lang.ClassCastException: org.apache.openejb.assembler.classic.ClassListInfo cannot be cast to java.lang.Comparable at java.util.TreeMap.put(TreeMap.java:542) at java.util.TreeSet.add(TreeSet.java:238) at org.apache.openejb.config.AppInfoBuilder.buildWebModules(AppInfoBuilder.java:369) at org.apache.openejb.config.AppInfoBuilder.build(AppInfoBuilder.java:261) at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:853) at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791) at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746) at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Oct 1, 2012 10:44:51 AM org.apache.catalina.core.ContainerBase removeChild SEVERE: ContainerBase.removeChild: destroy: org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ( [before_destroy] ) for component [StandardEngine [Catalina] .StandardHost [localhost] .StandardContext [/app-name] ] in state [STARTING_PREP] at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408) at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041) at org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:977) at org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:956) at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:797) at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746) at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)
        Hide
        Romain Manni-Bucau added a comment -

        that's fixed on trunk since some few hours

        Show
        Romain Manni-Bucau added a comment - that's fixed on trunk since some few hours
        Hide
        Andrei Militeev added a comment -

        I haven't tried it yet but will do today.
        I just found that the original issue is present in official 1.5.0 release.
        How people are supposed to use it on Windows? Is there any workaround?

        Show
        Andrei Militeev added a comment - I haven't tried it yet but will do today. I just found that the original issue is present in official 1.5.0 release. How people are supposed to use it on Windows? Is there any workaround?
        Hide
        Andrei Militeev added a comment -

        Thanks Romain, the issue now seems to be resolved in the snapshot. But the fact that the official release is still broken concerns me...

        Show
        Andrei Militeev added a comment - Thanks Romain, the issue now seems to be resolved in the snapshot. But the fact that the official release is still broken concerns me...
        Hide
        Romain Manni-Bucau added a comment -

        Well, we plan to do maintenance release soon.

        Hope it will be fine for you.

        Show
        Romain Manni-Bucau added a comment - Well, we plan to do maintenance release soon. Hope it will be fine for you.
        Hide
        Rade Martinović added a comment -

        The official release is still broken.

        Is there a place where the snapshot version is packed? I've tried to build TomEE from trunk my self, but some tests are in error.

        Show
        Rade Martinović added a comment - The official release is still broken. Is there a place where the snapshot version is packed? I've tried to build TomEE from trunk my self, but some tests are in error.
        Show
        Rade Martinović added a comment - Nevermind, I've found it here https://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/1.5.1-SNAPSHOT/
        Show
        Romain Manni-Bucau added a comment - Hi, here https://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/1.5.1-SNAPSHOT/
        Hide
        Rade Martinović added a comment -

        Thanks, it seems we posted at the same time

        Show
        Rade Martinović added a comment - Thanks, it seems we posted at the same time

          People

          • Assignee:
            Unassigned
            Reporter:
            Andrei Militeev
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development