14 Replies Latest reply on May 9, 2015 8:00 AM by leru

    Doing migration i got this error . What does rt.jar:1.7.0_79 ?

    leru

      09:25:58,660 DEBUG [org.jboss.as.ee] (MSC service thread 1-1) Not installing optional component ni.servlet.Init due to an exception: java.lang.ClassNotFoundException: ni.servlet.Init from [Module "deployment.EssaiEAR.ear.Essai.war:main" from Service Module Loader]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:197) [jboss-modules.jar:1.3.0.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:443) [jboss-modules.jar:1.3.0.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:431) [jboss-modules.jar:1.3.0.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:373) [jboss-modules.jar:1.3.0.Final]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:118) [jboss-modules.jar:1.3.0.Final]

          at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_79]

          at java.lang.Class.forName(Class.java:274) [rt.jar:1.7.0_79]

          at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54)

          at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:79)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]

          at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]

        • 1. Re: Doing migration i got this error . What does rt.jar:1.7.0_79 ?
          abhinav.gupta01

          >>What does rt.jar:1.7.0_79 ?

          This simply states that call start from jre version 7 , 79 update. It has nothing to do with exception you are getting.

           

          You need to check in which jar ni.servlet.Init is available. Probably your application use this class before , and you miss to put this jar in lib folder of EAR.

          you need to find in which jar this class is present ; and to add this jar to application.

           

          If you find the jar , you have options to import it to wildly using custom modules as well.

          Hope this helps.

          • 2. Re: Doing migration i got this error . What does rt.jar:1.7.0_79 ?
            leru

            Thank you gupta .ni.servlet.Init is a package under src .Must i put it in ear lib? I have all servlet dichiaration in web in that does not install.

             

            • 3. Re: Doing migration i got this error . What does rt.jar:1.7.0_79 ?
              abhinav.gupta01

              I assume this ni.servlet.Init is your own class file.

               

              If you are using EAR , then you can place all your required jars in lib folder under EAR , and it will be available for all wars.

               

              Please share some more details on your application structure.

              • 4. Re: Doing migration i got this error . What does rt.jar:1.7.0_79 ?
                leru

                First thank you very much for your avaibility.

                I have the pakage under java resources/src .

                In web.xml i have 5 servlets and all this 5 jboss gives Not installing component JBAS011006: Not installing optional component it.s2mc.fe.servlet.filters.IE9ExtensionsFilter due to an exception.

                 

                • 5. Re: Doing migration i got this error . What does rt.jar:1.7.0_79 ?
                  leru

                  • 6. Re: Doing migration i got this error . What does rt.jar:1.7.0_79 ?
                    abhinav.gupta01

                    Not sure now about what can cause this .

                    Please check once your EAR structure , where exactly that needed class is placed in EAR file .

                    If possible export this EAR and share it on dropbox, and share link here , so that community experts can have a look (I am not a expert )

                     

                    Exception is because class loader was not able to find class. If in EAR this class is NOT in lib , then this could be an issue.

                    I never use eclipse for wildfly deployments , so not sure how this EAR is generated by eclipse.

                    • 7. Re: Doing migration i got this error . What does rt.jar:1.7.0_79 ?
                      sanjay05222

                      I think you have to see where is this it.s2mc.fe.servlet.filters.IE9ExtensionsFilter class files are . I Mean you need to find out which jar it is in .

                      Cross check whether that Jar need to be included as separate module or as jsdk extension .

                       

                      Let me know once you have found the jar in your Jboss Instance

                       

                      Thanks

                      Sanjay Gautam

                      • 8. Re: Doing migration i got this error . What does rt.jar:1.7.0_79 ?
                        leru

                        Thanks you sanjay.It is into jre\lib\rt.jar. What must i do now with this rt.jar ?

                        Thanks.

                        • 9. Re: Doing migration i got this error . What does rt.jar:1.7.0_79 ?
                          leru

                          Thanks you sanjay . it's working but now as i'm doing a migration from websphere to jboss wildfly i want to implemente a j_security check using  the "other " default sercurity .Are there specific things to do ?

                          I have the folder "pages" protected.

                          Thanks thanks....

                          • 10. Re: Doing migration i got this error . What does rt.jar:1.7.0_79 ?
                            sanjay05222

                            Great , there are some packages and classes which doesn't not load directly as you might think of which are related with jre , I have no idea why though , but I can help you to fix the issue .

                            Please perform following steps hopefully it will fix class not found error .

                             

                            Go In this file path

                            wildfly-8.1.0.Final\modules\system\layers\base\sun\jdk\main

                             

                            Open the module.xml

                            you will see many paths which are related with the jre are being included here. you have to add the one for the class above. and also make sure that the jar is also available in similar path .

                            I will add it to the module.xml like below

                            I am taking here example of <path name="com/sun/jsf-impl"/>  <-- Adding this is the important aspect of the configuration.

                            Secondly I will  make sure that module is there for it .

                            wildfly-8.2.0.Final\modules\system\layers\base\com\sun\jsf-impl\main

                             

                            More details can be found in this place , Hope this helps.

                            https://docs.jboss.org/author/display/WFLY8/Class+Loading+in+WildFly

                            Section in the end Accessing JDK Classes

                            probably is helpful

                             

                            can you also upload the log file please.

                             

                            Thanks

                            Sanjay Gautam

                            (Mark helpful if it helped)

                            • 11. Re: Doing migration i got this error . What does rt.jar:1.7.0_79 ?
                              sanjay05222

                              massamba mass wrote:

                               

                              Thanks you sanjay . it's working but now as i'm doing a migration from websphere to jboss wildfly i want to implemente a j_security check using  the "other " default sercurity .Are there specific things to do ?

                              I have the folder "pages" protected.

                              Thanks thanks....

                              It will be great if you share what actually was the solutions . - Thanks

                              • 12. Re: Doing migration i got this error . What does rt.jar:1.7.0_79 ?
                                leru

                                Ciao great it's my module. I don't have seen anything refered to jre.

                                 

                                <module xmlns="urn:jboss:module:1.1" name="sun.jdk">

                                    <resources>

                                        <!-- currently jboss modules has not way of importing services from

                                        classes.jar so we duplicate them here -->

                                        <resource-root path="service-loader-resources"/>

                                    </resources>

                                    <dependencies>

                                        <system export="true">

                                            <paths>

                                                <path name="com/sun/script/javascript"/>

                                                <path name="jdk/nashorn/api/scripting"/>

                                                <path name="com/sun/image/codec/jpeg"/>

                                                <path name="com/sun/imageio/plugins/bmp"/>

                                                <path name="com/sun/imageio/plugins/common"/>

                                                <path name="com/sun/imageio/plugins/gif"/>

                                                <path name="com/sun/imageio/plugins/jpeg"/>

                                                <path name="com/sun/imageio/plugins/png"/>

                                                <path name="com/sun/imageio/plugins/wbmp"/>

                                                <path name="com/sun/imageio/spi"/>

                                                <path name="com/sun/imageio/stream"/>

                                                <path name="com/sun/jndi/dns"/>

                                                <path name="com/sun/jndi/ldap"/>

                                                <path name="com/sun/jndi/url"/>

                                                <path name="com/sun/jndi/url/corbaname"/>

                                                <path name="com/sun/jndi/url/dns"/>

                                                <path name="com/sun/jndi/url/iiop"/>

                                                <path name="com/sun/jndi/url/iiopname"/>

                                                <path name="com/sun/jndi/url/ldap"/>

                                                <path name="com/sun/jndi/url/ldaps"/>

                                                <path name="com/sun/crypto/provider"/>

                                                <path name="com/sun/org/apache/xml/internal/security/transforms/implementations"/>

                                                <path name="com/sun/security/auth"/>

                                                <path name="com/sun/security/auth/login"/>

                                                <path name="com/sun/security/auth/module"/>

                                                <path name="sun/awt"/>

                                                <path name="sun/awt/color"/>

                                                <path name="sun/awt/datatransfer"/>

                                                <path name="sun/awt/dnd"/>

                                                <path name="sun/awt/event"/>

                                                <path name="sun/awt/geom"/>

                                                <path name="sun/awt/im"/>

                                                <path name="sun/awt/image"/>

                                                <path name="sun/awt/image/codec"/>

                                                <path name="sun/awt/motif"/>

                                                <path name="sun/awt/resources"/>

                                                <path name="sun/awt/shell"/>

                                                <path name="sun/awt/util"/>

                                                <path name="sun/awt/windows"/>

                                                <path name="sun/awt/X11"/>

                                                <path name="sun/print"/>

                                                <path name="sun/print/resources"/>

                                                <path name="sun/security/pkcs"/>

                                                <path name="sun/security/x509"/>

                                                <path name="sun/jdbc/odbc"/>

                                                <path name="sun/jdbc/odbc/ee"/>

                                                <path name="sun/font"/>

                                                <path name="sun/misc"/>

                                                <path name="sun/io"/>

                                                <path name="sun/nio"/>

                                                <path name="sun/nio/ch"/>

                                                <path name="sun/nio/cs"/>

                                                <path name="sun/nio/cs/ext"/>

                                                <path name="sun/security"/>

                                                <path name="sun/security/util"/>

                                                <path name="sun/security/krb5"/>

                                                <path name="sun/util"/>

                                                <path name="sun/util/calendar"/>

                                                <path name="sun/util/locale"/>

                                                <path name="sun/util/resources"/>

                                                <path name="sun/security/pkcs11"/>

                                                <path name="sun/security/provider"/>

                                                <path name="sun/text"/>

                                                <path name="META-INF/services"/>

                                            </paths>

                                            <exports>

                                                <include-set>

                                                    <path name="META-INF/services"/>

                                                </include-set>

                                            </exports>

                                        </system>

                                    </dependencies>

                                </module>

                                • 13. Re: Doing migration i got this error . What does rt.jar:1.7.0_79 ?
                                  leru

                                  Thanks again sanjay. I have change the variable of system (windows) and give the path c:\programmi(x86)\java\jre\bin\java .Also i have add to the module( C:\Users\wildfly-8.0.0.Final\modules\system\layers\base\sun\jdk\main)     path name=" sun/net/util "as path name.

                                   

                                  Sanjay how can i use the security "other " (web.xml) using user.prop and user.role?

                                   

                                  Thanks you san

                                  • 14. Re: Doing migration i got this error . What does rt.jar:1.7.0_79 ?
                                    leru

                                    how to implemente j security check in wildfly8  using form?

                                    how to implemente spring without maven in wildfly8 ?