1 2 Previous Next 22 Replies Latest reply on Apr 1, 2011 11:00 AM by Dhanya Sreejith

    Issue with javascript & css in GateIn

    Dhanya Sreejith Newbie

      hii all.....

       

                 I've some js & css files which should be made available to all portlets in GateIn. How can I make this possible ?????

      Anybody plz help me..... thnx in advance....

        • 1. Re: Issue with javascript & css in GateIn
          Trong Tran Master
          I think what you should do is to put all js & css files in your own war and declare them in the resources descriptor file named gatein-resources.xml located at {yourwar}/WEB-INF/gatein-resources.xml. Moreover, make sure you had following filter in the web.xml of your war:
                  <filter>
                      <filter-name>ResourceRequestFilter</filter-name>
                    <filter-class>org.exoplatform.portal.application.ResourceRequestFilter</filter-class>
                  </filter>

                  <filter-mapping>
                    <filter-name>ResourceRequestFilter</filter-name>
                    <url-pattern>*.css</url-pattern>
                  </filter-mapping>
          btw, there is a discussion that you would have a look http://community.jboss.org/message/525586
          • 2. Re: Issue with javascript & css in GateIn
            Dhanya Sreejith Newbie

            hiii.... thnx for ur reply........I've followed the steps u told..... but I'm not able to get the applied css..... still I'm getting the default skin .......Is there any additional configuration which I need to do ??????

             

            what I've done :

             

            In gatein-resources.xml :

             

            <portal-skin>
                    <skin-name>newSkin</skin-name>
                    <css-path>/themes/blue/portal_style.css</css-path>
                    <overwrite>false</overwrite>
            </portal-skin>

             

            also gave the above mentioned filter in web.xml ....

             

             

             

            To make available js to all portlets, I've given

            <javascript>
                     <param>
                         <js-module>DateJS</js-module>
                         <js-path>/javascript/date/date.js</js-path>
                     </param>       
            </javascript>

            in gatein-resorces.xml. But I'm not able to get the given js in all portlets. Is there any additional configuration which I need to do ??????

            • 3. Re: Issue with javascript & css in GateIn
              Trong Tran Master

              For css, what you wanted is : to define a new skin or just add some more css files to the Default skin ?

              • 4. Re: Issue with javascript & css in GateIn
                Dhanya Sreejith Newbie

                I want to define a new skin......I already have some css files with me........ I need to get that css in all my portlets........

                • 5. Re: Issue with javascript & css in GateIn
                  Trong Tran Master

                  If you are defining a new skin, I suggest you to make it from http://anonsvn.jboss.org/repos/gatein/portal/tags/3.1.0-GA/examples/skins/simpleskin/

                   

                  btw I can be easier to help if you attach your war here with a few simple resources

                  • 6. Re: Issue with javascript & css in GateIn
                    Dhanya Sreejith Newbie

                    Earlier I deployed my application in JBoss portal.... in that case, I used a common layout, where I mentioned all my css & js as given below : ......

                     

                    <link rel="stylesheet" type="text/css" href="/themes/blue/portal_style.css" />

                     

                    <script type="text/javascript" src="/javascript/date/date.js"></script>

                     

                    But now, on deploying in GateIn, those css & js are not available to all portlets...... I need to make those available to all portlets..........

                    I've defined gatein-resources.xml in my WEB-INF directory.....

                     

                    gatein-resources.xml

                    ------------------------------

                     

                    <gatein-resources
                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_resources_1_0 http://www.gatein.org/xml/ns/gatein_resources_1_0"
                        xmlns="http://www.gatein.org/xml/ns/gatein_resources_1_0">

                     

                       <portal-skin>
                            <skin-name>newSkin</skin-name>
                            <css-path>/themes/blue/portal_style.css</css-path>
                            <overwrite>false</overwrite>
                        </portal-skin>


                         <javascript>
                             <param>
                                 <js-module>dateJS</js-module>
                                 <js-path>/javascript/date/date.js</js-path>
                             </param>

                         </javascript>

                    </gatein-resources>

                     

                     

                    In my web.xml I've added ResourceRequestFilter..... is there anything I need to do ?????

                    • 7. Re: Issue with javascript & css in GateIn
                      Dhanya Sreejith Newbie

                      To make available js to all portlets I've given :

                       

                      <gatein-resources
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                          xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_resources_1_0 http://www.gatein.org/xml/ns/gatein_resources_1_0"
                          xmlns="http://www.gatein.org/xml/ns/gatein_resources_1_0">

                          <javascript>
                               <param>
                                   <js-module>dateJS</js-module>
                                   <js-path>/javascript/date/date.js</js-path>
                               </param>

                           </javascript>

                      </gatein-resources>

                       

                      in my gatein-resources.xml..... but on starting the server after deploying my application, I'm getting an error :

                       

                      stacktrace :

                      ---------------

                       

                      10:32:10,359 INFO  [WSRPServiceIntegration] WSRP Service version '1.1.1-GA' started
                      10:32:10,453 INFO  [STDOUT] Initializing the context of the 'sample-ext'
                      10:32:10,515 ERROR [STDERR] java.lang.NullPointerException
                      10:32:10,515 ERROR [STDERR]     at java.io.Reader.<init>(Reader.java:61)
                      10:32:10,515 ERROR [STDERR]     at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.web.application.javascript.Javascript.getReader(Javascript.java:70)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.web.application.javascript.JavascriptConfigService.addJavascript(JavascriptConfigService.java:144)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.web.application.javascript.JavascriptConfigService.addJavascripts(JavascriptConfigService.java:124)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.web.application.javascript.JavascriptTask.execute(JavascriptTask.java:43)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.web.application.javascript.JavascriptConfigParser.processConfigResource(JavascriptConfigParser.java:58)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.web.application.javascript.JavascriptDeployer.register(JavascriptDeployer.java:124)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.web.application.javascript.JavascriptDeployer.access$000(JavascriptDeployer.java:42)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.web.application.javascript.JavascriptDeployer$1.execute(JavascriptDeployer.java:104)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.container.RootContainer.executeInitTasks(RootContainer.java:599)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.container.RootContainer.createPortalContainer(RootContainer.java:344)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.container.RootContainer.createPortalContainers(RootContainer.java:233)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.container.web.PortalContainerCreator.contextInitialized(PortalContainerCreator.java:57)
                      10:32:10,515 ERROR [STDERR]     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
                      10:32:10,515 ERROR [STDERR]     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                      10:32:10,515 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor320.invoke(Unknown Source)
                      10:32:10,515 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      10:32:10,515 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                      10:32:10,515 ERROR [STDERR]     at $Proxy38.start(Unknown Source)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.ServiceController.start(ServiceController.java:460)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.Main.boot(Main.java:221)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.Main$1.run(Main.java:556)
                      10:32:10,515 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:619)
                      10:32:10,515 ERROR [STDERR] java.lang.NullPointerException
                      10:32:10,515 ERROR [STDERR]     at java.io.Reader.<init>(Reader.java:61)
                      10:32:10,515 ERROR [STDERR]     at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.web.application.javascript.Javascript.getReader(Javascript.java:70)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.web.application.javascript.JavascriptConfigService.addJavascript(JavascriptConfigService.java:144)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.web.application.javascript.JavascriptConfigService.addJavascripts(JavascriptConfigService.java:124)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.web.application.javascript.JavascriptTask.execute(JavascriptTask.java:43)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.web.application.javascript.JavascriptConfigParser.processConfigResource(JavascriptConfigParser.java:58)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.web.application.javascript.JavascriptDeployer.register(JavascriptDeployer.java:124)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.web.application.javascript.JavascriptDeployer.access$000(JavascriptDeployer.java:42)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.web.application.javascript.JavascriptDeployer$1.execute(JavascriptDeployer.java:104)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.container.RootContainer.executeInitTasks(RootContainer.java:599)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.container.RootContainer.createPortalContainer(RootContainer.java:344)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.container.RootContainer.createPortalContainers(RootContainer.java:233)
                      10:32:10,515 ERROR [STDERR]     at org.exoplatform.container.web.PortalContainerCreator.contextInitialized(PortalContainerCreator.java:57)
                      10:32:10,515 ERROR [STDERR]     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
                      10:32:10,515 ERROR [STDERR]     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                      10:32:10,515 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor320.invoke(Unknown Source)
                      10:32:10,515 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      10:32:10,515 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                      10:32:10,515 ERROR [STDERR]     at $Proxy38.start(Unknown Source)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.ServiceController.start(ServiceController.java:460)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.Main.boot(Main.java:221)
                      10:32:10,515 ERROR [STDERR]     at org.jboss.Main$1.run(Main.java:556)
                      10:32:10,515 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:619)

                      • 8. Re: Issue with javascript & css in GateIn
                        Sergey Zubarev Newbie

                        this works for me:

                         

                        <?xml version="1.0" encoding="UTF-8"?>
                        <gatein-resources
                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                            xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_resources_1_0 http://www.gatein.org/xml/ns/gatein_resources_1_0"
                            xmlns="http://www.gatein.org/xml/ns/gatein_resources_1_0">
                            <javascript>
                                <param>
                                    <js-module>GaugePortlet</js-module>
                                    <js-path>/js/bindows_gauges/bindows_gauges.js</js-path>
                                    <js-priority>10</js-priority>
                                </param>
                                <param>
                                    <js-module>JQuery</js-module>
                                    <js-path>/js/jquery/jquery.js</js-path>
                                    <js-priority>10</js-priority>
                                </param>
                                <param>
                                    <js-module>JQueryDatepicker</js-module>
                                    <js-path>/js/jquery/jquery-ui-datepicker.js</js-path>
                                    <js-priority>10</js-priority>
                                </param>   
                                       
                            </javascript>   
                           <portal-skin>
                              <skin-module>JQuery</skin-module>
                              <skin-name>Default</skin-name>
                              <css-path>/css/jquery.css</css-path>
                              <overwrite>false</overwrite>
                           </portal-skin>   
                        </gatein-resources>

                         

                        in your case I think you forgot this: "<js-priority>10</js-priority>"

                         

                        and one more important thing: gatein merge all javascript in one file merged.js and load it to page.

                        To load JS in separate files in gatein.bat change following:

                        Dexo.product.developing=true

                        • 9. Re: Issue with javascript & css in GateIn
                          Dhanya Sreejith Newbie

                          hiii Sergey......thnx 4 ur reply...... I've tried after giving "<js-priority>10</js-priority>"....... still I get the same error......... Is there any additional configuration required ?????

                          • 10. Re: Issue with javascript & css in GateIn
                            Sergey Zubarev Newbie

                            I think you need to define <display-name> in your web.xml

                            • 11. Re: Issue with javascript & css in GateIn
                              Dhanya Sreejith Newbie

                              I've defined <display-name> also.........

                              • 12. Re: Issue with javascript & css in GateIn
                                Trong Tran Master

                                it's hard to imagine your problem except you attach whole your webapp here. So we can be easier to help !

                                • 13. Re: Issue with javascript & css in GateIn
                                  Dhanya Sreejith Newbie

                                  hiii....... thnx to all for ur valuable info...... my issue has been rectified......... there was a slight difference in the path to my js file which I specified.......

                                  anyway, thnx a lot 4 ur reply......

                                   

                                  and 1 more thing.....  As Sergey said,

                                   

                                  To load JS in separate files in gatein.bat change following:

                                  Dexo.product.developing=true

                                   

                                  As I'm using GateIn - JBoss, I can't find gatein.bat....... so I gave the same in run.conf.bat.....wat u told was a new info: for me..... thnx 4 tat.......


                                  • 14. Re: Issue with javascript & css in GateIn
                                    Sergey Zubarev Newbie

                                    I'm using gatein on tomcat

                                    1 2 Previous Next