5 Replies Latest reply on Oct 15, 2006 8:40 PM by flex_newer

    Weblogic 9.2 Deployment of EAR

    ShortCakeBerry
      I have installed Flex Data Services 2.0 on Weblogic 9.2 workshop successfully, Flex can run smoothly in workshop. However, when I build an EAR for production the following error occurs and the EAR cannot be deployed (The EAR only have Flex application, no any other module):

      <Jul 4, 2006 6:10:55 PM GMT+08:00> <Error> <Console> <BEA-240003> <Console encou
      ntered the following error Unexpected deployment state New>
      <Jul 4, 2006 6:11:23 PM GMT+08:00> <Error> <HTTP> <BEA-101216> <Servlet: "Messag
      eBrokerServlet" failed to preload on startup in Web application: "Sample2".
      java.lang.NullPointerException
      at java.io.File.<init>(File.java:194)
      at flex.messaging.MessageBrokerServlet.getFlexWritePath(MessageBrokerSer
      vlet.java:232)
      at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:92
      )
      at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(St
      ubSecurityHelper.java:276)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      Truncated. see log file for complete stacktrace
      >
      <Jul 4, 2006 6:11:23 PM GMT+08:00> <Error> <Deployer> <BEA-149265> <Failure occu
      red in the execution of deployment request with ID '1152007879234' for task '3'.
      Error is: 'weblogic.application.ModuleException: [HTTP:101216]Servlet: "Message
      BrokerServlet" failed to preload on startup in Web application: "Sample2".
      java.lang.NullPointerException
      at java.io.File.<init>(File.java:194)
      at flex.messaging.MessageBrokerServlet.getFlexWritePath(MessageBrokerSer
      vlet.java:232)
      at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:92
      )
      at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(St
      ubSecurityHelper.java:276)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      121)
      at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecuri
      tyHelper.java:68)
      at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubL
      ifecycleHelper.java:58)
      at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHel
      per.java:48)
      at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
      mpl.java:494)
      at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
      ervletContext.java:1694)
      at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(
      WebAppServletContext.java:1671)
      at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
      pServletContext.java:1591)
      at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletCon
      text.java:2717)
      at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.jav
      a:877)
      at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:327)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSta
      teDriver.java:204)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
      river.java:26)
      at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStat
      eDriver.java:60)
      at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedMod
      uleDriver.java:196)
      at weblogic.application.internal.flow.ModuleListenerInvoker.start(Module
      ListenerInvoker.java:114)

      .....

      How to solve this problem? Please kindly help. Thank you.
        • 1. Re: Weblogic 9.2 Deployment of EAR
          jpwrunyan Level 1
          I have had a similar problem. According to the information I have found, you need to use explode/expand the directory. As you may have noticed, I am not at all Server savvvy.

          That said, according to our server guy, the problem we had (with WAS) came from some binary conversion carried out in our specific framework... once we fixed that, there was no problem. So technically, despite having read otherwise, you can deploy using EAR.

          Sorry I can't be of much help. From experience, I can only suggest checking if your framework is working some sort of file conversion...
          • 2. Re: Weblogic 9.2 Deployment of EAR
            ShortCakeBerry Level 1
            Thank you very much for your reply.

            Thus, can we conclude that the problem is came from some binary conversion from Flex framework and this problem can be solved later. What we can do now is that just wait for next release (Flex)? Or we can solve this by changing some weblogic files? Thank a lot.
            • 3. Re: Weblogic 9.2 Deployment of EAR
              jpwrunyan Level 1
              Sorry, I wasn't clear.
              In our case, the Web Application framework was the problem. It incorporated Struts, by the way. I think it was doing some sort of binary conversion on all files. Our network administrator had to fix it. There was nothing I could do.
              The Flex .war was not the problem. If you are not the person who set up your server/J2EE Web Application Server, then you should ask and see if the person who did knows anything. That's my only advice. Sorry it's not very good.
              • 4. Re: Weblogic 9.2 Deployment of EAR
                Level 7
                Have you looked at the FDS installation instructions? There instructions
                regarding installation of a compressed WAR:
                http://www.adobe.com/support/documentation/en/flex/2/install.html#weblogic

                HTH
                Randy Nielsen


                "ShortCakeBerry" <webforumsuser@macromedia.com> wrote in message
                news:e8g2be$ej4$1@forums.macromedia.com...
                >I have installed Flex Data Services 2.0 on Weblogic 9.2 workshop
                >successfully,
                > Flex can run smoothly in workshop. However, when I build an EAR for
                > production
                > the following error occurs and the EAR cannot be deployed (The EAR only
                > have
                > Flex application, no any other module):
                >
                > <Jul 4, 2006 6:10:55 PM GMT+08:00> <Error> <Console> <BEA-240003> <Console
                > encou
                > ntered the following error Unexpected deployment state New>
                > <Jul 4, 2006 6:11:23 PM GMT+08:00> <Error> <HTTP> <BEA-101216> <Servlet:
                > "Messag
                > eBrokerServlet" failed to preload on startup in Web application:
                > "Sample2".
                > java.lang.NullPointerException
                > at java.io.File.<init>(File.java:194)
                > at
                > flex.messaging.MessageBrokerServlet.getFlexWritePath(MessageBrokerSer
                > vlet.java:232)
                > at
                > flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:92
                > )
                > at
                > weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(St
                > ubSecurityHelper.java:276)
                > at
                > weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
                > dSubject.java:321)
                > Truncated. see log file for complete stacktrace
                > >
                > <Jul 4, 2006 6:11:23 PM GMT+08:00> <Error> <Deployer> <BEA-149265>
                > <Failure
                > occu
                > red in the execution of deployment request with ID '1152007879234' for
                > task
                > '3'.
                > Error is: 'weblogic.application.ModuleException: [HTTP:101216]Servlet:
                > "Message
                > BrokerServlet" failed to preload on startup in Web application: "Sample2".
                > java.lang.NullPointerException
                > at java.io.File.<init>(File.java:194)
                > at
                > flex.messaging.MessageBrokerServlet.getFlexWritePath(MessageBrokerSer
                > vlet.java:232)
                > at
                > flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:92
                > )
                > at
                > weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(St
                > ubSecurityHelper.java:276)
                > at
                > weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
                > dSubject.java:321)
                > at
                > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
                > 121)
                > at
                > weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecuri
                > tyHelper.java:68)
                > at
                > weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubL
                > ifecycleHelper.java:58)
                > at
                > weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHel
                > per.java:48)
                > at
                > weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
                > mpl.java:494)
                > at
                > weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
                > ervletContext.java:1694)
                > at
                > weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(
                > WebAppServletContext.java:1671)
                > at
                > weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
                > pServletContext.java:1591)
                > at
                > weblogic.servlet.internal.WebAppServletContext.start(WebAppServletCon
                > text.java:2717)
                > at
                > weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.jav
                > a:877)
                > at
                > weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:327)
                > at
                > weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSta
                > teDriver.java:204)
                > at
                > weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
                > river.java:26)
                > at
                > weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStat
                > eDriver.java:60)
                > at
                > weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedMod
                > uleDriver.java:196)
                > at
                > weblogic.application.internal.flow.ModuleListenerInvoker.start(Module
                > ListenerInvoker.java:114)
                >
                > .....
                >
                > How to solve this problem? Please kindly help. Thank you.
                >
                >


                • 5. Re: Weblogic 9.2 Deployment of EAR
                  flex_newer
                  I have follow the instruction of http://www.adobe.com/support/documentation/en/flex/2/install.html#weblogic

                  but when i run the web page, it only show me the mxml tag.

                  Do anyone know how to solve it?
                  Thanks.