3 Replies Latest reply on May 11, 2015 12:26 PM by fvitolo88

    GateIn startup problem in Eclipse

    vali_iva

      Hi there folks. I'm a newbe around here and I'm having trouble properly starting GateIn (both Tomcat and JBoss bundle) in Eclipse.

      The server  starts just fine from command line and the sample-portal is working. With Eclispe, GateIn throws exceptions but starts and sample-portlet application isn't working.

      Please help out here. I really need to integrate with Eclipse. I attached the output of the server.

       

      Thanks.

       

      Valentin Ionita

        • 1. Re: GateIn startup problem in Eclipse
          plamarque

          below are two screenshots of my eclipse :

           

          eclipse-gatein-tocmat-server.png

          eclipse-launch-config.png

           

          It's not Gatein, it's eXo Platform, but it should work the same.

          The key is in the 2nd screen : VM arguments (taken from gatein.sh) and the working directory

           

          HTH

          • 2. Re: GateIn startup problem in Eclipse
            vali_iva

            It works! This is perfect.

            Thanks very much Patrice.

            • 3. Re: GateIn startup problem in Eclipse
              fvitolo88

              hi guys. I've the same problem of Valentin, when i start gatein from command-line it works, but if i try to start it from eclipse i get this exception :

               

              (application.ResourceRequestFilter   70  ) Cache eXo Resource at client: true

              (container.RootContainer             441 ) Building root container

              (container.RootContainer             109 ) Active profiles [tomcat]

              (util.ContainerUtil                  280 ) Cannot load property file file:/C:/GateIn-3.1.0-GA/lib/exo.kernel.component.common-2.2.2-GA.jar!/conf/configuration.properties

              java.io.FileNotFoundException: JAR entry conf/configuration.properties not found in C:\GateIn-3.1.0-GA\lib\exo.kernel.component.common-2.2.2-GA.jar

                at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:140)

                at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:150)

                at java.net.URL.openStream(URL.java:1037)

                at org.exoplatform.container.util.ContainerUtil.loadProperties(ContainerUtil.java:236)

                at org.exoplatform.container.util.ContainerUtil.loadProperties(ContainerUtil.java:216)

                at org.exoplatform.container.PropertyConfigurator.<init>(PropertyConfigurator.java:105)

                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

                at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

                at org.exoplatform.container.ExoContainer.createComponent(ExoContainer.java:321)

                at org.exoplatform.container.jmx.MX4JComponentAdapter.getComponentInstance(MX4JComponentAdapter.java:94)

                at org.exoplatform.container.management.ManageableComponentAdapter.getComponentInstance(ManageableComponentAdapter.java:68)

                at org.exoplatform.container.ConcurrentPicoContainer.getInstance(ConcurrentPicoContainer.java:400)

                at org.exoplatform.container.ConcurrentPicoContainer.getComponentInstancesOfType(ConcurrentPicoContainer.java:350)

                at org.exoplatform.container.CachingContainer.getComponentInstancesOfType(CachingContainer.java:111)

                at org.picocontainer.defaults.LifecycleVisitor.visitContainer(LifecycleVisitor.java:97)

                at org.exoplatform.container.ConcurrentPicoContainer.accept(ConcurrentPicoContainer.java:506)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:606)

                at org.picocontainer.defaults.AbstractPicoVisitor.traverse(AbstractPicoVisitor.java:32)

                at org.picocontainer.defaults.LifecycleVisitor.traverse(LifecycleVisitor.java:63)

                at org.picocontainer.defaults.LifecycleVisitor.start(LifecycleVisitor.java:113)

                at org.exoplatform.container.ConcurrentPicoContainer.start(ConcurrentPicoContainer.java:453)

                at org.exoplatform.container.ExoContainer.start(ExoContainer.java:186)

                at org.exoplatform.container.ExoContainer.start(ExoContainer.java:180)

                at org.exoplatform.container.RootContainer.buildRootContainer(RootContainer.java:406)

                at org.exoplatform.container.RootContainer.getInstance(RootContainer.java:443)

                at org.exoplatform.web.GenericHttpListener.contextInitialized(GenericHttpListener.java:188)

                at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)

                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)

                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)

                at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)

                at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)

                at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)

                at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)

                at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)

                at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

                at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)

                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

                at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

                at org.apache.catalina.core.StandardService.start(StandardService.java:516)

                at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

                at org.apache.catalina.startup.Catalina.start(Catalina.java:583)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:606)

                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

               

               

              i belive it's appen cause i've a bad Argument's configuration in "Open Launch configuration" view.

              Unfortunately the second image of Patrice post is unavaliable, could you post it again or help me for the above error ???

               

              Thanks.