9 Replies Latest reply on Mar 29, 2010 7:34 PM by Ray Prieto

    Problem in a startup off war aplication?

    Ray Prieto Apprentice

      Hello Im new in the discussion group and i want to ask for help in an instalation for JBOSS under linux redhat with an informix database  i have a war aplication usin jsp programs and when i start the AS, i have the following error only with one off the aplications:

       

      2010-03-26 17:09:53,255 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/quo21]] (main) Excepción enviando evento inicializado de contexto a instancia de escuchador de clase org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
      java.lang.ClassCastException: org.apache.crimson.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory
            at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:128)
            at com.sun.faces.config.ConfigureListener$WebXmlProcessor.getConfiguredFactory(ConfigureListener.java:698)
            at com.sun.faces.config.ConfigureListener$WebXmlProcessor.scanForFacesServlet(ConfigureListener.java:670)
            at com.sun.faces.config.ConfigureListener$WebXmlProcessor.<init>(ConfigureListener.java:644)

       

      And the aplication is not available for use, does any body now what can be ????

       

      Thanks in advance.

        • 1. Re: Problem in a startup off war aplication?
          Peter Johnson Master

          Most likely you have a saxp JAR file in your web app that is conflicting with the one provided by JBoss AS. Remove that file and see if the app works (or if there is a new error).

           

          Also, post a list of the JARs packaged with your web app - you might have more than one that is in conflict.

          • 2. Re: Problem in a startup off war aplication?
            Ray Prieto Apprentice

            Ok under de deployment directory I use to put a directory with that format:  aplication.war and under that directory I put the .jsp ´s files that we are using in the aplication, actualy i have 5 aplications in that way, an that one give me that problem Im in charge on the infraestructure the OS, the Informix DB and the JBOSS AS, but Im not expert in Java Programming, in wich part can i find the file that are give me the problem.??

             

            Thanks

            • 3. Re: Problem in a startup off war aplication?
              Peter Johnson Master

              Assuming that you are deploying only WATs, the offending JAR files will be in the WEB-INF/lib directory.

              • 4. Re: Problem in a startup off war aplication?
                Ray Prieto Apprentice

                Ok i got it Im gona extract the list off the jar and post it. Thank You Very Much

                • 5. Re: Problem in a startup off war aplication?
                  Ray Prieto Apprentice

                  This is the list of the jar´s

                  [root@webservice lib]# pwd
                  /usr/local/jboss-5.1.0.GA/server/default/deploy/quo21.war/WEB-INF/lib
                  [root@webservice lib]# ls -l
                  total 6360
                  -rw-r--r-- 1 root root   54829 mar 26 17:08 activation.jar
                  -rw-r--r-- 1 root root  369001 mar 26 17:08 batik-awt-util-1.6.jar
                  -rw-r--r-- 1 root root   87407 mar 26 17:08 batik-dom-1.6.jar
                  -rw-r--r-- 1 root root  164659 mar 26 17:08 batik-svggen-1.6.jar
                  -rw-r--r-- 1 root root   81508 mar 26 17:08 batik-util-1.6.jar
                  -rw-r--r-- 1 root root   20305 mar 26 17:08 batik-xml-1.6.jar
                  -rw-r--r-- 1 root root  138251 mar 26 17:08 cewolf-1.0.jar
                  -rw-r--r-- 1 root root   38015 mar 26 17:08 commons-logging-1.0.4.jar
                  -rw-r--r-- 1 root root   48585 mar 26 17:08 cos.jar
                  -rw-r--r-- 1 root root  205045 mar 26 17:08 crimson-1.1.3.jar
                  -rw-r--r-- 1 root root   31631 mar 26 17:08 download4j.jar
                  -rw-r--r-- 1 root root    3075 mar 26 17:08 downloadPackage.jar
                  -rw-r--r-- 1 root root   22379 mar 26 17:08 fileupload.jar
                  -rw-r--r-- 1 root root  232898 mar 26 17:08 gnujaxp-1.0.0.jar
                  -rw-r--r-- 1 root root  231445 mar 26 17:08 gnujaxp.jar
                  -rw-r--r-- 1 root root  604048 mar 26 17:08 ifxjdbc.jar
                  -rw-r--r-- 1 root root  137669 mar 26 17:08 internetbeans.jar
                  -rw-r--r-- 1 root root  296672 mar 26 17:08 jcommon-1.0.0.jar
                  -rw-r--r-- 1 root root  290574 mar 26 17:08 jcommon-1.0.0-pre2.jar
                  -rw-r--r-- 1 root root 1074564 mar 26 17:08 jfreechart-1.0.0.jar
                  -rw-r--r-- 1 root root 1044877 mar 26 17:08 jfreechart-1.0.0-pre2.jar
                  -rw-r--r-- 1 root root  121658 mar 26 17:08 junit-3.8.jar
                  -rw-r--r-- 1 root root  121070 mar 26 17:08 junit.jar
                  -rw-r--r-- 1 root root  358085 mar 26 17:08 log4j-1.2.12.jar
                  -rw-r--r-- 1 root root  347137 mar 26 17:08 mail.jar
                  -rw-r--r-- 1 root root    4219 mar 26 17:08 MM_NSApplet.jar
                  -rw-r--r-- 1 root root    1876 mar 26 17:08 progress.jar
                  -rw-r--r-- 1 root root   77977 mar 26 17:08 servlet-api-2.3.jar
                  -rw-r--r-- 1 root root   80054 mar 26 17:08 servlet.jar
                  -rw-r--r-- 1 root root   24537 mar 26 17:08 smtp.jar
                  -rw-r--r-- 1 root root   19667 mar 26 17:08 SOAPMonitorApplet.jar
                  -rw-r--r-- 1 root root    3000 mar 26 17:08 SwingApplet.jar
                  -rw-r--r-- 1 root root   24795 mar 26 17:08 uploadbean.jar

                   

                  Thanks

                  • 6. Re: Problem in a startup off war aplication?
                    Peter Johnson Master

                    Remove these, they are already provided by JBoss AS:

                    -rw-r--r-- 1 root root   38015 mar 26  17:08 commons-logging-1.0.4.jar

                    -rw-r--r-- 1 root root  358085 mar 26  17:08 log4j-1.2.12.jar

                    -rw-r--r-- 1 root root  347137 mar 26 17:08  mail.jar

                    -rw-r--r-- 1 root  root   77977 mar 26 17:08 servlet-api-2.3.jar
                    -rw-r--r-- 1 root  root   80054 mar 26 17:08 servlet.jar

                     

                    Remove these; they are the ones that provide duplicate jaxp functionality:

                    -rw-r--r-- 1 root root  232898 mar 26 17:08  gnujaxp-1.0.0.jar
                    -rw-r--r-- 1 root root  231445 mar 26 17:08  gnujaxp.jar

                     

                    Is this one a JDBC driver? That should really go into common/lib.

                    -rw-r--r-- 1 root root  604048 mar 26 17:08 ifxjdbc.jar

                    • 7. Re: Problem in a startup off war aplication?
                      Ray Prieto Apprentice

                      I will remove the jar files that you tell me, but i still have the problem i post the complete log for te AS

                       

                      Thanks

                      • 8. Re: Problem in a startup off war aplication?
                        Peter Johnson Master

                        Remove this also:

                        -rw-r--r-- 1 root root  205045 mar 26 17:08 crimson-1.1.3.jar

                        • 9. Re: Problem in a startup off war aplication?
                          Ray Prieto Apprentice

                          Thank you very much, is working actually and we are going to test all the aplications.

                           

                          I really apreciate the support