13 Replies Latest reply on May 7, 2012 3:29 AM by jaikiran

    Issue with jsfloat-0.7.0.jar and Jboss7, please help

    aspraveen

      Hi,

       

      I am facing a strange issue, whenever I add jsfloat-0.7.0.jar into the library and deploy as war file to jboss 7, it failes with following error. It is working fine on weblogic server.

       

      This error is happening even if we remove any reference of jsfloat from the page.

       

      15:12:23,986 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."EML.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."EML.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "EML.war"

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.Beta1b.jar:]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:]

                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [:1.7.0_01]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.7.0_01]

                at java.lang.Thread.run(Unknown Source) [:1.7.0_01]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011093: Could not load component class org.jsflot.components.XyDataPointTag

                at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:113)

                at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)

                at

       

      Has any one faced the issue? kindly help

        • 1. Re: Issue with jsfloat-0.7.0.jar and Jboss7, please help
          jaikiran

          What does the entire exception stacktrace look like? And see if this works on 7.1.0.CR1 which has just been released http://www.jboss.org/jbossas/downloads.html

          • 2. Re: Issue with jsfloat-0.7.0.jar and Jboss7, please help
            aspraveen

            Hi Jaikiran,

             

            Thanks for the reply.

             

            I tried downloading the new version as you suggested but still same error. Sorry I don't know how to get stacktrace when it is not deployed, I can paste the following from server.log. If you have any idea, please let me know.

             

            Will class path have any thing to do on it? if yes, can you tell me how I need to set it up?

             

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

            14:22:37,931 INFO  [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011921: Stopping OSGi Framework

            14:38:32,900 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 61) Activating Security Subsystem

            14:38:32,980 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 56) JBAS011910: Activating OSGi Subsystem

            14:38:33,134 INFO  [org.jboss.as.clustering] (ServerService Thread Pool -- 47) JBAS010300: Activating Infinispan subsystem.

            14:38:33,172 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 55) JBAS011800: Activating Naming Subsystem

            14:38:33,310 INFO  [org.jboss.remoting] (MSC service thread 1-3) JBoss Remoting version 3.2.0.CR8

            14:38:33,524 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 65) JBAS015537: Activating WebServices Extension

            14:38:35,961 INFO  [org.jboss.as.security] (MSC service thread 1-4) Picketbox version=4.0.6.Beta2

            14:38:36,760 INFO  [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.6.Final)

            14:38:39,168 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 43) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

            14:38:41,844 INFO  [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting Naming Service

            14:38:42,542 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) Listening on /127.0.0.1:4447

            14:38:42,737 INFO  [org.jboss.as.jaxr] (MSC service thread 1-1) Binding JAXR ConnectionFactory: java:jboss/jaxr/ConnectionFactory

            14:38:42,943 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-1) JBAS015400: Bound mail session [java:jboss/mail/Default]

            14:38:43,059 INFO  [org.apache.coyote.http11.Http11AprProtocol] (MSC service thread 1-3) Starting Coyote HTTP/1.1 on http--127.0.0.1-94

            14:38:45,607 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-4) JBoss Web Services - Stack CXF Server 4.0.0.GA

            14:38:49,480 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

            14:38:49,589 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) Listening on /127.0.0.1:9999

            14:38:49,694 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) JBAS015012: Started FileSystemDeploymentService for directory C:\Jboss7.1\standalone\deployments

            14:38:51,051 INFO  [org.jboss.as] (Controller Boot Thread) JBoss AS 7.1.0.CR1b "Flux Capacitor" started in 60912ms - Started 130 of 200 services (68 services are passive or on-demand)

            14:40:15,039 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015009: Scan found incompletely copied file content for deployment C:\Jboss7.1\standalone\deployments\EML.war. Deployment changes will not be processed until all content is complete.

            14:40:15,766 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Starting deployment of "EML.war"

            14:40:19,949 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."EML.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."EML.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "EML.war"

                      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]

                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

                      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [:1.7.0_01]

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.7.0_01]

                      at java.lang.Thread.run(Unknown Source) [:1.7.0_01]

            Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011093: Could not load component class org.jsflot.components.XyDataPointTag

                      at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:113)

                      at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)

                      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]

                      ... 5 more

            Caused by: java.lang.ClassNotFoundException: org.jsflot.components.XyDataPointTag from [Module "deployment.EML.war:main" from Service Module Loader]

                      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                      at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:111)

                      ... 7 more

             

             

            14:40:19,973 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015856: Undeploy of deployment "EML.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"EML.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"EML.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"EML.war\""}}

            14:40:20,121 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Stopped deployment EML.war in 147ms

            14:40:20,124 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report

            JBAS014777:   Services which failed to start:      service jboss.deployment.unit."EML.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."EML.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "EML.war"

             

             

            14:40:20,128 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"EML.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"EML.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"EML.war\""}}}}

            • 3. Re: Issue with jsfloat-0.7.0.jar and Jboss7, please help
              jaikiran

              Where is the org.jsflot.components.XyDataPointTag class located?

              • 4. Re: Issue with jsfloat-0.7.0.jar and Jboss7, please help
                aspraveen

                Hi Jaikiran,

                 

                I am using Jdeveloper and adding the jar file under the projects 'Libraries and class path'.

                 

                Alternatevely, I tried placing the jar file to the jboss, modules -> org -> jsfloat -> main

                 

                with the following module.xml

                 

                <?xml version="1.0" encoding="UTF-8"?>

                 

                <module xmlns="urn:jboss:module:1.1" name="org.jsflot">

                    <resources>

                        <resource-root path="jsflot-0.7.0.jar"/>

                        <!-- Insert resources here -->

                    </resources>

                  

                      <dependencies>

                    

                    </dependencies>

                     <paths>

                        <path name="org/jsflot/components"/>

                        <path name="org/jsflot/json"/>

                        <path name="org/jsflot/renderkit"/>

                        <path name="org/jsflot/xydata"/>

                     </paths>  

                </module>

                 

                Thank you

                • 5. Re: Issue with jsfloat-0.7.0.jar and Jboss7, please help
                  jaikiran

                  Let's not get into creating modules for now. What does your final deployed application look like and where in that deployment is that class located? Post the output of:

                   

                  jar -tf EML.war

                  • 6. Re: Issue with jsfloat-0.7.0.jar and Jboss7, please help
                    aspraveen

                    Thank you for your time. Sure, please find the output below.

                     

                    WEB-INF/classes/mm/Password.class

                    WEB-INF/classes/mm/accounts.class

                    WEB-INF/classes/mm/addaccount.class

                    WEB-INF/classes/mm/divisions.class

                    WEB-INF/classes/mm/editaccount.class

                    WEB-INF/classes/mm/home.class

                    WEB-INF/classes/mm/index.class

                    WEB-INF/classes/mm/logout.class

                    WEB-INF/classes/mm/mmcore.class

                    WEB-INF/classes/mm/report.class

                    WEB-INF/faces-config.xml

                    WEB-INF/lib/jsflot.jar

                    WEB-INF/lib/ojdbc6.jar

                    WEB-INF/web.xml

                    WEB-INF/weblogic.xml

                    accounts.jsf

                    addaccount.jsf

                    divisions.jsf

                    editaccount.jsf

                    home.jsf

                    index.jsf

                    logout.jsf

                    password.jsf

                    reports.jsf

                    resources/css/mm.css

                    resources/image/del.png

                    resources/image/edit.png

                    resources/image/hbg.jpg

                    templates/master.jsf

                    • 7. Re: Issue with jsfloat-0.7.0.jar and Jboss7, please help
                      jaikiran

                      Is org.jsflot.components.XyDataPointTag in that .war/WEB-INF/lib/jsflot.jar? What's the output of:

                       

                      jar -tf jsflot.jar

                      • 8. Re: Issue with jsfloat-0.7.0.jar and Jboss7, please help
                        aspraveen

                        Please find the output

                         

                        META-INF/

                        META-INF/MANIFEST.MF

                        org/

                        org/inconspicuous/

                        org/inconspicuous/jsmin/

                        org/jsflot/

                        org/jsflot/components/

                        org/jsflot/json/

                        org/jsflot/renderkit/

                        org/jsflot/renderkit/phaselistener/

                        org/jsflot/xydata/

                        org/json/

                        META-INF/base64.js

                        META-INF/blackbird.css

                        META-INF/blackbird.js

                        META-INF/blackbird_icons.png

                        META-INF/blackbird_panel.png

                        META-INF/canvas2image.js

                        META-INF/canvastext.js

                        META-INF/dateformat.js

                        META-INF/excanvas.js

                        META-INF/faces-config.xml

                        META-INF/flotr.js

                        META-INF/jsflot.taglib.xml

                        META-INF/jsflot.tld

                        META-INF/jsflotAjaxscript.js

                        META-INF/logskeleton.js

                        META-INF/mootools-release-1.11.js

                        META-INF/prototype-1.6.0.2.js

                        META-INF/resources-config.xml

                        org/inconspicuous/jsmin/JSMin$UnterminatedCommentException.class

                        org/inconspicuous/jsmin/JSMin$UnterminatedRegExpLiteralException.class

                        org/inconspicuous/jsmin/JSMin$UnterminatedStringLiteralException.class

                        org/inconspicuous/jsmin/JSMin.class

                        org/jsflot/components/BubbleDataPointComponent.class

                        org/jsflot/components/BubbleDataPointTag.class

                        org/jsflot/components/CandlestickDataPointComponent.class

                        org/jsflot/components/CandlestickDataPointTag.class

                        org/jsflot/components/ComponentRendererUtil.class

                        org/jsflot/components/FlotChartClickedEvent.class

                        org/jsflot/components/FlotChartComponent.class

                        org/jsflot/components/FlotChartDraggedEvent.class

                        org/jsflot/components/FlotChartRenderer.class

                        org/jsflot/components/FlotChartRendererData.class

                        org/jsflot/components/FlotChartTag.class

                        org/jsflot/components/ResourcesComponent.class

                        org/jsflot/components/ResourcesRenderer.class

                        org/jsflot/components/ResourcesTag.class

                        org/jsflot/components/XYDataListComponent.class

                        org/jsflot/components/XYDataListTag.class

                        org/jsflot/components/XYDataPointComponent.class

                        org/jsflot/components/XYDataPointTag.class

                        org/jsflot/json/TestJSONObject.class

                        org/jsflot/renderkit/phaselistener/ResourceLoaderPhaseListener.class

                        org/jsflot/xydata/BubbleDataPoint.class

                        org/jsflot/xydata/CandlestickDataPoint.class

                        org/jsflot/xydata/XYDataList.class

                        org/jsflot/xydata/XYDataPoint.class

                        org/jsflot/xydata/XYDataSetCollection.class

                        org/json/CDL.class

                        org/json/Cookie.class

                        org/json/CookieList.class

                        org/json/HTTP.class

                        org/json/HTTPTokener.class

                        org/json/JSONArray.class

                        org/json/JSONException.class

                        org/json/JSONML.class

                        org/json/JSONObject$1.class

                        org/json/JSONObject$Null.class

                        org/json/JSONObject.class

                        org/json/JSONString.class

                        org/json/JSONStringer.class

                        org/json/JSONTokener.class

                        org/json/JSONWriter.class

                        org/json/Test$1Obj.class

                        org/json/Test.class

                        org/json/XML.class

                        org/json/XMLTokener.class

                        META-INF/maven/

                        META-INF/maven/org.jsflot/

                        META-INF/maven/org.jsflot/jsflot/

                        META-INF/maven/org.jsflot/jsflot/pom.xml

                        META-INF/maven/org.jsflot/jsflot/pom.properties

                        • 9. Re: Issue with jsfloat-0.7.0.jar and Jboss7, please help
                          aspraveen

                          I notice that the class name present in jsfloat.jar is XY diffrent from Xy, can it be the issue?

                          • 10. Re: Issue with jsfloat-0.7.0.jar and Jboss7, please help
                            jaikiran

                            org/jsflot/components/XYDataPointTag.class

                            and

                            Caused by: java.lang.ClassNotFoundException: org.jsflot.components.XyDataPointTag from [Module "deployment.EML.war:main" from Service Module Loader]

                            Notice the case difference in the classname. Some .tld or some other file in your application is using the wrong class name which is causing this issue. You'll have to fix that file to refer to the correct classname.

                            1 of 1 people found this helpful
                            • 11. Re: Issue with jsfloat-0.7.0.jar and Jboss7, please help
                              aspraveen

                              Thank you very much. I will check where it is happening.

                               

                              Really appreciate your kindness to trace it out.

                              • 12. Re: Issue with jsfloat-0.7.0.jar and Jboss7, please help
                                facundomiquel

                                I know this is pretty old, but just FYI the actual problem is in jsflot.tld in the tag definition it's pointing to XyDataPointTag instead of XYDataPointTag.

                                 

                                A simple solution is to extract the file from the jar, modify the file yourself and replace the original file.

                                 

                                Regards

                                • 13. Re: Issue with jsfloat-0.7.0.jar and Jboss7, please help
                                  jaikiran

                                  It's a bug in that library, so someone should file a issue in their issue tracker so that it can be fixed there.