2 Replies Latest reply on Aug 7, 2006 4:48 PM by blackshirt

    Jrun/Flex

    blackshirt
      I have a Jrun instance where I want to deploy Flex. I extract the flex.war file to my \\Jrun4servers\TestFlex\ folder. The Flex Data Services Web Application shows up under J2EE components so the deployment works.

      However when I view my log files I see this. Any ideas?

      # Created by JRun on 08/02 15:58:37
      08/02 15:58:37 error Could not pre-load servlet: FlexMxmlServlet
      [1]java.util.regex.PatternSyntaxException: Unexpected character '?' near index 6
      [$][$][{]
      ^
      at java.util.regex.Pattern.error(Unknown Source)
      at java.util.regex.Pattern.range(Unknown Source)
      at java.util.regex.Pattern.clazz(Unknown Source)
      at java.util.regex.Pattern.sequence(Unknown Source)
      at java.util.regex.Pattern.expr(Unknown Source)
      at java.util.regex.Pattern.compile(Unknown Source)
      at java.util.regex.Pattern.<init>(Unknown Source)
      at java.util.regex.Pattern.compile(Unknown Source)
      at java.lang.String.replaceAll(Unknown Source)
      at flash.localization.LocalizationManager.replaceInlineReferences(LocalizationManager.java:9 3)
      at flash.localization.ResourceBundleLocalizer$ResourceBundleText.format(ResourceBundleLocali zer.java:51)
      at flash.localization.LocalizationManager.getLocalizedTextString(LocalizationManager.java:11 9)
      at flash.localization.LocalizationManager.getLocalizedTextString(LocalizationManager.java:10 3)
      at flash.localization.LocalizationManager.getLocalizedTextString(LocalizationManager.java:98 )
      at flex2.compiler.util.AbstractLogger.init(AbstractLogger.java:24)
      at flex2.compiler.util.AbstractLogger.formatPrefix(AbstractLogger.java:73)
      at flex.services.logging.WebtierIntegratedLogger.log(WebtierIntegratedLogger.java:61)
      at flex.services.logging.WebtierIntegratedLogger.log(WebtierIntegratedLogger.java:41)
      at flex2.compiler.util.ThreadLocalToolkit.log(ThreadLocalToolkit.java:411)
      at flex2.compiler.config.FileConfigurator.load(FileConfigurator.java:53)
      at flex2.compiler.config.FileConfigurator.load(FileConfigurator.java:90)
      at flex2.compiler.config.FileConfigurator.load(FileConfigurator.java:80)
      at flex.services.config.Configurator.loadServerConfiguration(Configurator.java:121)
      at flex.services.config.Configurator.init(Configurator.java:78)
      at flex.services.J2EEServiceImpl.setupConfigurator(J2EEServiceImpl.java:145)
      at flex.services.J2EEServiceImpl.start(J2EEServiceImpl.java:89)
      at flex.util.ServiceUtil.setupFlexService(ServiceUtil.java:50)
      at flex2.server.j2ee.MxmlServlet.init(MxmlServlet.java:58)
      at flex.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
      at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1200)
      at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:791)
      at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:293)
      at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
      at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
      at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
      at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
      at jrun.deployment.DeployerService.run(DeployerService.java:891)
      at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:230)
      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
      [0]javax.servlet.ServletException: Unexpected character '?' near index 6
      [$][$][{]
      ^
      at flex.util.ServiceUtil.setupFlexService(ServiceUtil.java:64)
      at flex2.server.j2ee.MxmlServlet.init(MxmlServlet.java:58)
      at flex.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
      at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1200)
      at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:791)
      at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:293)
      at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
      at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
      at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
      at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
      at jrun.deployment.DeployerService.run(DeployerService.java:891)
      at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:230)
      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

      08/02 15:58:37 error Could not pre-load servlet: MessageBrokerServlet
      flex.messaging.config.ConfigurationException: The minimum required Java version was not found. Please install JDK 1.4.2_06 or above. Current version is 1.4.0.
      at flex.messaging.config.ConfigurationManager.verifyMinimumJavaVersion(ConfigurationManager. java:232)
      at flex.messaging.config.ConfigurationManager.getMessagingConfiguration(ConfigurationManager .java:64)
      at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:90)
      at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1200)
      at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:791)
      at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:293)
      at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
      at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
      at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
      at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
      at jrun.deployment.DeployerService.run(DeployerService.java:891)
      at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:230)
      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

      08/02 15:58:37 error Could not pre-load servlet: FlexSwfServlet
      javax.servlet.ServletException: Invalid Configuration: see previous failures.
      at flex2.server.j2ee.SwfServlet.init(SwfServlet.java:74)
      at javax.servlet.GenericServlet.init(GenericServlet.java:258)
      at flex2.server.j2ee.CompileAgentServlet.init(CompileAgentServlet.java:18)
      at flex.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
      at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1200)
      at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:791)
      at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:293)
      at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
      at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
      at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
      at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
      at jrun.deployment.DeployerService.run(DeployerService.java:891)
      at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:230)
      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

      08/02 15:58:37 error Could not pre-load servlet: FlexInternalServlet
      [1]java.lang.NullPointerException
      at flex.server.j2ee.filemanager.FileManagerServlet.init(FileManagerServlet.java:53)
      at flex.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
      at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1200)
      at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:791)
      at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:293)
      at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
      at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
      at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
      at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
      at jrun.deployment.DeployerService.run(DeployerService.java:891)
      at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:230)
      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
      [0]javax.servlet.ServletException
      at flex.bootstrap.BootstrapServlet.init(BootstrapServlet.java:72)
      at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1200)
      at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:791)
      at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:293)
      at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
      at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
      at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
      at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
      at jrun.deployment.DeployerService.run(DeployerService.java:891)
      at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:230)
      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

        • 1. Re: Jrun/Flex
          jrunrandy Adobe Employee
          The thing I noticed in the stack trace is this:
          "The minimum required Java version was not found. Please install JDK 1.4.2_06 or above. Current version is 1.4.0."

          Are you running a 1.3.x JVM?
          • 2. Re: Jrun/Flex
            blackshirt Level 1
            Thanks for the reply. I noticed that also and installed jdk1.5. However that blew up Jrun so I had to point back to jdk 1.4. I'm running Jrun4 updater 6 and running the jdk that was installed with Jrun. A lot of people should have had this same issue when deploying to Jrun4.

            Anyone?