5 Replies Latest reply on Jul 14, 2007 4:17 PM by pmuir

    SeamGen for NetBeans Enterprise Application and GlassFish

    samdoyle

      Any plans of having seamgen generate a NetBeans enterprise type application for use with GlassFish? I've been having a bugger of a time trying to convert and get one working properly in the setup I just mentioned.

        • 1. Re: SeamGen for NetBeans Enterprise Application and GlassFis
          samdoyle

          Here is the part I'm stuck at atm. It is for some reason failing on parsing the components.xml.

          [#|2007-07-13T19:33:05.523-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;_RequestID=12893421-1797-4332-81da-9adde10d07f9;|WebModule[/ILDA-war]PWC1275: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
          java.lang.RuntimeException: error while reading /WEB-INF/components.xml
          at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:137)
          at org.jboss.seam.init.Initialization.create(Initialization.java:87)
          at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4493)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:5150)
          at com.sun.enterprise.web.WebModule.start(WebModule.java:308)
          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:960)
          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:944)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:671)
          at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1575)
          at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1216)
          at com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContainer.java:1141)
          at com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:128)
          at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:226)
          at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:323)
          at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:217)
          at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:190)
          at com.sun.enterprise.server.ApplicationManager.applicationEnabled(ApplicationManager.java:750)
          at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:911)
          at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:889)
          at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
          at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
          at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.sendEnableConfigChangeEventExplicitly(ApplicationsConfigMBean.java:1821)
          at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.enable(ApplicationsConfigMBean.java:1889)
          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:597)
          at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:353)
          at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
          at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
          at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
          at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
          at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
          at $Proxy1.invoke(Unknown Source)
          at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
          at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:56)
          at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:142)
          at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:109)
          at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:180)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:818)
          at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
          at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:258)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:189)
          at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
          at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
          at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
          at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
          at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
          at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
          at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
          at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
          at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
          at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
          at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
          at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:255)
          at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
          at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
          at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
          at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
          at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
          at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
          at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
          at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
          Caused by: java.lang.IllegalArgumentException
          at org.jboss.seam.util.Conversions$FlatPropertyValue.(Conversions.java:275)
          at org.jboss.seam.init.Initialization.getPropertyValue(Initialization.java:416)
          at org.jboss.seam.init.Initialization.installComponentFromXmlElement(Initialization.java:390)
          at org.jboss.seam.init.Initialization.installComponentsFromXmlElements(Initialization.java:242)
          at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:133)
          ... 70 more
          |#]

          • 2. Re: SeamGen for NetBeans Enterprise Application and GlassFis
            samdoyle

            I should have mentioned that this error takes place during deployment.

            • 3. Re: SeamGen for NetBeans Enterprise Application and GlassFis
              pmuir

              Have you looked at the glassfish/jee5 example?

              • 4. Re: SeamGen for NetBeans Enterprise Application and GlassFis
                samdoyle

                Thanks I wasn't aware of it.

                So I'm still encountering the same issue though it has to be something simple with the project layout perhaps?

                Basically trying to convert the ant project as seen by NetBeans into a NetBeans Enterprise Application which constructs two additional projects within. The one for the web tier and the other representing the business tier. NetBeans provides some useful features that speeds up development when operating within this type of project.

                It is really odd though since I would have thought just copying the files to the appropriate locations in the Enterprise Application would have been simple although during deployment I always see that exception on reading components.xml

                • 5. Re: SeamGen for NetBeans Enterprise Application and GlassFis
                  pmuir

                  Compare the built ear from the example and the ear built using netbeans to see where the differences are.