6 Replies Latest reply on Oct 5, 2006 1:00 PM by Jyothi Pemmasani

    Issues with JBoss Application Server

    Jyothi Pemmasani Newbie

      Hi,

      I am very new to JBOSS. I have created war file and deployed in jboss-4.0.2. Once I deployed I am not seeing any where the exapandable directory of the war file and also I could not find the application log file.

      I really appreciate all the help.

      Thanks

        • 1. Re: Issues with JBoss Application Server
          Pete Muir Master

          Seam won't work in 4.0.2, for Seam 1.0.1.GA you need to use the JEMS installed as discussed in the getting started guide.

          If you deploy a (non-exploded) war then JBoss will internally unpack the war but it's not something you should be touching. If you are after an exploded war this is discussed on the Wiki.

          The log file is in $JBOSS_HOME/server/default/log/server.log

          • 2. Re: Issues with JBoss Application Server
            Jyothi Pemmasani Newbie

            The war file is extracted on temp directory. each time i deploy it is creating new temp directory. I forgot to mention the war i am deploying is on linux box. What you have specified is sever.log file, but I am talking about log4j file. I am not seeing that log4j file once the application is up.

            • 3. Re: Issues with JBoss Application Server
              Pete Muir Master

              I'm afraid I'm not really following you. You say that each time you deploy a new temporary directory is being created, but you don't know where it is?

              You say you don't see the log4j file once the application is up. What sort of log4j file are you expecting to see? The log output? Or a config file of some sort? Or log output from your application?

              • 4. Re: Issues with JBoss Application Server
                Jyothi Pemmasani Newbie

                Sorry for the confusion.
                I am facing two issues:
                1) I used to work with websphere server before. There when ever i deploy a war file all the files will store in expandable directory and for any small changes i used to hot deploy only those pages (for examples jsp). But I am not able to see that type of directory expect temp.

                2) I am not seeing the log out from my application. Because I am trying to connect oracle through jndi and each time if i try to log on it says username not found. I am not able to find where the applicaion is failing due to log from application is no where to be found.

                I really appreciate all your help

                • 5. Re: Issues with JBoss Application Server
                  Pete Muir Master

                   

                  "jpemmasani" wrote:
                  1) I used to work with websphere server before. There when ever i deploy a war file all the files will store in expandable directory and for any small changes i used to hot deploy only those pages (for examples jsp). But I am not able to see that type of directory expect temp.


                  JBoss is different (for better or for worse!). Hot deploy is a bit tricky to get working. I use it fine with some ant tasks. Essentially you need to deploy the ear/war exploded, then you can copy facelets etc. into the exploded war and jboss will take care of making them available.

                  Hotcode replacement is another issue - Eclipse takes care of it when in debug mode. You can follow http://wiki.jboss.org/wiki/Wiki.jsp?page=EclipseSeamAutoDeploy if you use eclipse for packaging.

                  2) I am not seeing the log out from my application. Because I am trying to connect oracle through jndi and each time if i try to log on it says username not found. I am not able to find where the applicaion is failing due to log from application is no where to be found.


                  JBoss logs everything (it uses log4j) to server.log. It's possible log4j isn't printing the messages, it's configuration is $JBOSS_HOME\server\default\conf\log4j.xml

                  • 6. Re: Issues with JBoss Application Server
                    Jyothi Pemmasani Newbie

                    Thank you for all your help.

                    Yes it was log4j which wasnt' printing the messages.
                    I would like to know where do I have to copy the manually war file to deploy. Is it to jboss/server/default/deploy or jboss/server/all/deploy. Becuase i am using oracle data source to connect to the database and i have copied the oracle-ds.xml file to $JBOSS_HOME/server/default/deploy directory. Now the error i am getting is 'testDateSource' not found. do i have to specify anywhere this jndi other than oracle-ds.xml file .

                    Thanks,