1 Reply Latest reply on Apr 9, 2014 8:50 PM by Kevin Stone

    Deployment issue on JBoss AS 7.1

    hygreva98 Newbie

      I am new to JBoss and having hard time deploying app to JBoss. Here, I am trying to port an old application that has been developed on JDK 1.4 and Deployed on JRun4 as we are trying to upgrade the application to the latest JDK & deploy the app on JBoss AS 7.1.

      As this was a service oriented and has dtd's defined for each service and Java client implementation has been created with JAXB 1.0. I was able to make changes to the schema definitions and compile the schema with JAXB 2.2 and created the client files.

      While I was trying to deploy I am having issues the error I encounter is as below:

      19:34:47,400 ERROR [stderr] (Thread-68) java.lang.ClassNotFoundException: com.microstar.xml.SAXDriver from [Module "deployment.aus.war:main" from Service Module Loader]

       

      I don't know in the code where this class is being referred besides this error I don't see any other error message, but the app does not come up. Is there anything I am missing here or some modification that need to be done for the app to load.

       

      Also where do I define the user variable at the application start up something like which is required by the application.

       

      -Dlog4j.configuration=C:/dist/files/files/log4j.properties -Dcom.utils.constants.filename=C:/dist/files/constants.xml -Dcom.utils.messages.filename=C:/dist/files/msgapi.xml -Dengine.properties=C:/dist/files/ruleengine/xml/engineproperties/engineproperties.xml -Dcom.xml.stylesheet.properties=C:/dist/files/stylesheet.properties -Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser

       

      Need help ASAP any suggestion is really appreciated. Thanks in advance.

        • 1. Re: Deployment issue on JBoss AS 7.1
          Kevin Stone Newbie

          I am no JBoss expert but perhaps this will help. There is no guarantee that any of this will work but here goes.   Do you have the jar that contains com.microstar.xml.SAXDriver?  If not you need to get it and create a module for it.  To do that you go to your jboss/modules folder.  There should already be a com folder.   In the com folder create a microstar/xml/main folder.  In the main folder put your jar.  Also in the main folder create a file named module.xml.  If you look at any of the other module.xml files you will see that they contain the module name (path to the jar), the jar name, and any dependencies that the jar has.  Create something that looks like other module.xml files.   Now your application needs to declare a dependency on the module.  You can do that by adding a file in the WEB-INF folder of your war.  You can use MANIFEST.MF file and a line like "Dependencies: com.microstar.xml" or a jboss-deployment-structure.xml file (there are a bunch of examples on the internet)   As far defining user variables I don't really know.  You could read them from a properties file or I have seen a JBoss tutorial about passing variables by changing the bat/sh file that starts the server.  I think that there is a JAVA_OPTS line that you may be able to add something to but I'm not sure. 

           

          I hope that this helps a bit.

           

          -kevin