8 Replies Latest reply on Jul 16, 2013 11:37 AM by Tomaz Cerar

    Application work in Tomcat but not in Jboss

    thirupathi r Newbie

      I have done my application(webMathematica) with Tomcat. Later we try to deploy same application in Jboss but not get it work.

      Here is the procedure which I followed to deploy application in Jboss.

      As the link said I have installed Jboss and deploy the sample Hello World application in Jboss and get it working. But When I try to deploy my application(webMathematica), it was deployed successfully and I try to run the application in browser it's not working. It shows the following error when I try to run the urlhttp://localhost:8080/webMathematica/ in browser.

      HTTP Status 500 -  type

      Exception

      report  message  description

      The server encountered an internal error () that prevented it from    fulfilling this request. 

      exception  java.lang.NullPointerException

      com.wolfram.msp.MSPKernelRequest.releaseKernelAsync(MSPKernelRequest.java:190)

      com.wolfram.msp.MSPServletRequestListener.requestDestroyed(MSPServletRequestListener.java:77)

      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

      java.lang.Thread.run(Thread.java:722)


      note The full stack trace of the root cause is available in the JBoss Web/7.0.13.Final logs. 

      JBoss Web/7.0.13.Final

      Note: I have copied the application from tomcat's webapps folder and wrapped up the application in .war file before deploy it in Jboss.

      The same application I deployed in Geronimo Application server it was working fine.

      What the reason for application not working would be?

      I think I need to configure jboss-web.xml

        • 1. Re: Application work in Tomcat but not in Jboss
          Stephen Coy Master

          Please attach the complete server.log.

           

          *Hint: click on "Use advanced editor" on the right side of the page when composing a reply and then you can attach files.

          • 2. Re: Application work in Tomcat but not in Jboss
            thirupathi r Newbie

            I have attached the server.log file. Take a look at it and let me know.

            • 3. Re: Application work in Tomcat but not in Jboss
              jaikiran pai Master

              The logs clearly show that a particular native library isn't available on the java.library.path. You'll have to fix that and I think once that's fixed, you'll probably have the NullPointerException fixed too.

              • 4. Re: Application work in Tomcat but not in Jboss
                thirupathi r Newbie

                I don't know where can I find java library and where I need to fix. Should I fix java library in my application or in jboss?

                I have no idea about java.

                 

                The same application is work with apcahe tomcat 6.0 but not with jboss. Is that problem with jboss web version(forked version of tomcat)?

                • 5. Re: Application work in Tomcat but not in Jboss
                  thirupathi r Newbie

                  I have deployed my application in jboss 4.0.2 version which has tomcat 5.5.9 version and it is working well.

                  I think the jboss web(forked version of tomcat) is not suppport my application.

                   

                  Can any one suggest me how can I make my application work with jboss-as 7.1.1.final version or tell me how can I replace jboss web with tomcat component in jboss-as 7.1.1.final

                  • 6. Re: Application work in Tomcat but not in Jboss
                    Tomaz Cerar Master

                    can you post output of

                    jar tf <name-of-your-deployment>

                    • 7. Re: Application work in Tomcat but not in Jboss
                      thirupathi r Newbie

                      The Output of

                       

                      I:\Software\WEBMATHEMATICA\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\standalone\deployments>jar -tf webMathe.war

                       

                      is

                       

                      WEB-INF/classes/

                      WEB-INF/classes/log4j.properties

                      WEB-INF/classes/samples/

                      WEB-INF/classes/samples/log4j.properties-sample

                      WEB-INF/classes/samples/log4j.properties.BACK

                      WEB-INF/classes/samples/log4j.properties.DEBUG

                      WEB-INF/lib/

                      WEB-INF/lib/commons-beanutils.jar

                      WEB-INF/lib/commons-codec-1.4.jar

                      WEB-INF/lib/commons-collections-3.2.jar

                      WEB-INF/lib/commons-configuration-1.4.jar

                      WEB-INF/lib/commons-fileupload-1.2.1.jar

                      WEB-INF/lib/commons-io-1.3.2.jar

                      WEB-INF/lib/commons-lang-2.5.jar

                      WEB-INF/lib/commons-logging-1.1.jar

                      WEB-INF/lib/JLink.jar

                      WEB-INF/lib/jstl.jar

                      WEB-INF/lib/log4j-1.2.15.jar

                      WEB-INF/lib/standard.jar

                      WEB-INF/lib/SystemFiles/

                      WEB-INF/lib/SystemFiles/Libraries/

                      WEB-INF/lib/SystemFiles/Libraries/Linux/

                      WEB-INF/lib/SystemFiles/Libraries/Linux/libJLinkNativeLibrary.so

                      WEB-INF/lib/SystemFiles/Libraries/Linux-x86-64/

                      WEB-INF/lib/SystemFiles/Libraries/Linux-x86-64/libJLinkNativeLibrary.so

                      WEB-INF/lib/SystemFiles/Libraries/MacOSX-x86-64/

                      WEB-INF/lib/SystemFiles/Libraries/MacOSX-x86-64/libJLinkNativeLibrary.jnilib

                      WEB-INF/lib/SystemFiles/Libraries/Windows/

                      WEB-INF/lib/SystemFiles/Libraries/Windows/JLinkNativeLibrary.dll

                      WEB-INF/lib/SystemFiles/Libraries/Windows-x86-64/

                      WEB-INF/lib/SystemFiles/Libraries/Windows-x86-64/JLinkNativeLibrary.dll

                      WEB-INF/lib/wolfram-kerneltools-1.1.1.jar

                      WEB-INF/lib/wolfram-msp-3.2.0.jar

                      WEB-INF/mathpass

                      WEB-INF/MSPConfiguration.xml

                      WEB-INF/SecurityConfiguration.m

                      WEB-INF/src/

                      WEB-INF/src/com/

                      WEB-INF/src/com/wolfram/

                      WEB-INF/src/com/wolfram/kerneltools/

                      WEB-INF/src/com/wolfram/kerneltools/job/

                      WEB-INF/src/com/wolfram/kerneltools/job/Job.java

                      WEB-INF/src/com/wolfram/kerneltools/job/JobEvent.java

                      WEB-INF/src/com/wolfram/kerneltools/job/JobListener.java

                      WEB-INF/src/com/wolfram/kerneltools/job/JobQueue.java

                      WEB-INF/src/com/wolfram/kerneltools/job/JobQueueEvent.java

                      WEB-INF/src/com/wolfram/kerneltools/job/JobQueueListener.java

                      WEB-INF/src/com/wolfram/kerneltools/job/JobStatics.java

                      WEB-INF/src/com/wolfram/kerneltools/job/package.html

                      WEB-INF/src/com/wolfram/kerneltools/Kernel.java

                      WEB-INF/src/com/wolfram/kerneltools/KernelEvent.java

                      WEB-INF/src/com/wolfram/kerneltools/KernelException.java

                      WEB-INF/src/com/wolfram/kerneltools/KernelListener.java

                      WEB-INF/src/com/wolfram/kerneltools/KernelPool.java

                      WEB-INF/src/com/wolfram/kerneltools/KernelPoolEvent.java

                      WEB-INF/src/com/wolfram/kerneltools/KernelPoolListener.java

                      WEB-INF/src/com/wolfram/kerneltools/KernelRequest.java

                      WEB-INF/src/com/wolfram/kerneltools/KernelTimeoutTask.java

                      WEB-INF/src/com/wolfram/kerneltools/KernelToolsStatics.java

                      WEB-INF/src/com/wolfram/kerneltools/OutputEvent.java

                      WEB-INF/src/com/wolfram/kerneltools/OutputType.java

                      WEB-INF/src/com/wolfram/kerneltools/package.html

                      WEB-INF/src/com/wolfram/kerneltools/state/

                      WEB-INF/src/com/wolfram/kerneltools/state/ErrorType.java

                      WEB-INF/src/com/wolfram/kerneltools/state/package.html

                      WEB-INF/src/com/wolfram/kerneltools/state/State.java

                      WEB-INF/src/com/wolfram/kerneltools/state/StateMachine.java

                      WEB-INF/src/com/wolfram/kerneltools/ThreadPool.java

                      WEB-INF/src/com/wolfram/msp/

                      WEB-INF/src/com/wolfram/msp/ControllerServlet.java

                      WEB-INF/src/com/wolfram/msp/datastore/

                      WEB-INF/src/com/wolfram/msp/datastore/FileStore.java

                      WEB-INF/src/com/wolfram/msp/datastore/package.html

                      WEB-INF/src/com/wolfram/msp/DataStore.java

                      WEB-INF/src/com/wolfram/msp/example/

                      WEB-INF/src/com/wolfram/msp/example/ExamplePlotServlet.java

                      WEB-INF/src/com/wolfram/msp/example/TextApplet.java

                      WEB-INF/src/com/wolfram/msp/GenericQueuedKernelRequest.java

                      WEB-INF/src/com/wolfram/msp/MSPErrorType.java

                      WEB-INF/src/com/wolfram/msp/MSPJob.java

                      WEB-INF/src/com/wolfram/msp/MSPKernelRequest.java

                      WEB-INF/src/com/wolfram/msp/MSPManager.java

                      WEB-INF/src/com/wolfram/msp/MSPManagerException.java

                      WEB-INF/src/com/wolfram/msp/MSPQueuedKernelRequest.java

                      WEB-INF/src/com/wolfram/msp/MSPServlet.java

                      WEB-INF/src/com/wolfram/msp/MSPServletRequestListener.java

                      WEB-INF/src/com/wolfram/msp/MSPStatics.java

                      WEB-INF/src/com/wolfram/msp/MSPStoreMode.java

                      WEB-INF/src/com/wolfram/msp/NestedConfiguration.java

                      WEB-INF/src/com/wolfram/msp/package.html

                      WEB-INF/src/com/wolfram/msp/tags/

                      WEB-INF/src/com/wolfram/msp/tags/AllocateKernelTag.java

                      WEB-INF/src/com/wolfram/msp/tags/ClassConstantsMap.java

                      WEB-INF/src/com/wolfram/msp/tags/ConstantsMapTag.java

                      WEB-INF/src/com/wolfram/msp/tags/el/

                      WEB-INF/src/com/wolfram/msp/tags/el/ELStatics.java

                      WEB-INF/src/com/wolfram/msp/tags/el/package.html

                      WEB-INF/src/com/wolfram/msp/tags/EvaluateQueuedTag.java

                      WEB-INF/src/com/wolfram/msp/tags/EvaluateTag.java

                      WEB-INF/src/com/wolfram/msp/tags/GetTag.java

                      WEB-INF/src/com/wolfram/msp/tags/package.html

                      WEB-INF/src/com/wolfram/msp/tags/SetTag.java

                      WEB-INF/src/com/wolfram/msp/webservices/

                      WEB-INF/src/com/wolfram/msp/webservices/FaultCode.java

                      WEB-INF/src/com/wolfram/msp/webservices/package.html

                      WEB-INF/src/com/wolfram/msp/webservices/WebServicesKernelRequest.java

                      WEB-INF/src/com/wolfram/msp/webservices/WebServicesServlet.java

                      WEB-INF/src/com/wolfram/msp/webservices/WebServicesServletException.java

                      WEB-INF/tlds/

                      WEB-INF/tlds/c.tld

                      WEB-INF/tlds/fmt.tld

                      WEB-INF/tlds/fn.tld

                      WEB-INF/tlds/msp.tld

                      WEB-INF/tlds/sql.tld

                      WEB-INF/tlds/x.tld

                      WEB-INF/web.xml

                       

                       

                      Since I can't get full content from command promt, I don't show whole result.

                      • 8. Re: Application work in Tomcat but not in Jboss
                        Tomaz Cerar Master

                        thirupathi r wrote:

                         

                        WEB-INF/lib/

                        WEB-INF/lib/commons-beanutils.jar

                        WEB-INF/lib/commons-codec-1.4.jar

                        WEB-INF/lib/commons-collections-3.2.jar

                        WEB-INF/lib/commons-configuration-1.4.jar

                        WEB-INF/lib/commons-fileupload-1.2.1.jar

                        WEB-INF/lib/commons-io-1.3.2.jar

                        WEB-INF/lib/commons-lang-2.5.jar

                        WEB-INF/lib/commons-logging-1.1.jar <-- not needed, remove

                        WEB-INF/lib/JLink.jar

                        WEB-INF/lib/jstl.jar  <-- not needed, remove

                        WEB-INF/lib/log4j-1.2.15.jar <-- not needed, remove

                        WEB-INF/lib/standard.jar <-- dont needed remove

                        WEB-INF/lib/SystemFiles/

                        WEB-INF/lib/SystemFiles/Libraries/ <-- this is where you have problems

                        WEB-INF/lib/SystemFiles/Libraries/Linux/

                        WEB-INF/lib/SystemFiles/Libraries/Linux/libJLinkNativeLibrary.so <-- this is native lib for linux 32bit

                        WEB-INF/lib/SystemFiles/Libraries/Linux-x86-64/

                        WEB-INF/lib/SystemFiles/Libraries/Linux-x86-64/libJLinkNativeLibrary.so <-- this is native lib for linux 64bit

                        WEB-INF/lib/SystemFiles/Libraries/MacOSX-x86-64/

                        WEB-INF/lib/SystemFiles/Libraries/MacOSX-x86-64/libJLinkNativeLibrary.jnilib <-- this is native lib for mac

                        WEB-INF/lib/SystemFiles/Libraries/Windows/

                        WEB-INF/lib/SystemFiles/Libraries/Windows/JLinkNativeLibrary.dll <-- native lib for windows 32bit

                        WEB-INF/lib/SystemFiles/Libraries/Windows-x86-64/

                        WEB-INF/lib/SystemFiles/Libraries/Windows-x86-64/JLinkNativeLibrary.dll <-- native lib for windows 64bit

                        WEB-INF/lib/wolfram-kerneltools-1.1.1.jar

                        WEB-INF/lib/wolfram-msp-3.2.0.jar

                        WEB-INF/mathpass

                        WEB-INF/MSPConfiguration.xml

                        WEB-INF/SecurityConfiguration.m

                        WEB-INF/src/

                        WEB-INF/src/com/ <-- sources don't belong to deployment...

                         

                         

                        Basicly your problem is that you have native libs in some custom sub-directory where they are not read from.

                         

                        Put your native lib (The one you need for your platform) to lib of application (WEB-INF/lib) or put it to global library path.

                         

                        also bin folder of jboss should work.

                         

                         

                        --

                        tomaz