6 Replies Latest reply on Oct 23, 2012 2:56 PM by Brenden Towey

    Deployment: Unkown Error?

    Brenden Towey Newbie

      So I have a brand new JBoss AS 7.1 server, and I'm trying to use the management console to deploy a little test app.  The console says "unkown error" when I try to deploy it.  (BTW, the pop-up that says "Your request is beeing processes" hangs, it never dismisses, even though I can see the message show up on the deployment screen.)

       

      So the message I get (after I manually delete the "processing" pop-up) is: Unexpect HTTP response 500.  (Gee, I sure wish I could copy-paste from the message pop up.  There's a bit more that I really don't want to have to transcribe by hand.)

       

      So I check the logs and this is what I see:

       

      03:00:41,658 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "SimpleTTH.war"

      03:00:41,700 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for SimpleTthPU

      03:00:41,727 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016002: Processing weld deployment SimpleTTH.war

      03:00:41,728 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named ContactForm in deployment unit deployment "SimpleTTH.war" are as follows:

       

              java:global/SimpleTTH/ContactForm!com.tabletopheroes.simpletth.ContactForm

              java:app/SimpleTTH/ContactForm!com.tabletopheroes.simpletth.ContactForm

              java:module/ContactForm!com.tabletopheroes.simpletth.ContactForm

              java:global/SimpleTTH/ContactForm

              java:app/SimpleTTH/ContactForm

              java:module/ContactForm

       

      03:00:41,801 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016005: Starting Services for CDI deployment: SimpleTTH.war

      03:00:42,024 INFO  [org.jboss.as.server] (HttpManagementService-threads - 8) JBAS015870: Deploy of deployment "SimpleTTH.war" was rolled back with failure message JBAS014750: Operation handler failed to complete

      03:00:42,041 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment SimpleTTH.war in 15ms

       

       

      Wow, rejected in 15ms!

       

      But I don't see any errors here.  Nor does the Messages window in the console app give me any hints.  Any ideas what might actually be going on?

       

      If I want to try to deploying manually, where does the management cosole upload War files to before it actually deploys them?  Having the War file on hand will save me a step.

        • 1. Re: Deployment: Unkown Error?
          Wolf-Dieter Fink Master

          What exact version of AS7.1 do you use? In which mode the server is started (domain/standalone)?

          Maybe your try standalone and drop the war to standalone/deployments and add a logger for org.jboss.as.server.deployment (TRACE) to see more.

          1 of 1 people found this helpful
          • 2. Re: Deployment: Unkown Error?
            Brenden Towey Newbie

            Hi Wolf, thanks for the thoughts.

             

            I'm using JBoss AS 7.1.1 Final, according to the tar file.

             

            I'm running standalone, with fairly minimal changes to standalone.xml.  I'm not even connecting to Apache, HTTP right now it's running directly on port 8080.

             

            I'll try to figure out how to add a logger, but if you can give me a hint it would help me out.  (Do you think I should contact the development team about this?  It seems to me logging an error for something like this should be standard, shouldn't require TRACE logging.)

            • 3. Re: Deployment: Unkown Error?
              Brenden Towey Newbie

              I added some additional logging, and tried a deployment by copying directly (manually) to standalone/deployments on the server.  I got the following:

               

              19:24:29,651 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "SimpleTth.war"

              19:24:30,499 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for SimpleTthPU

              19:24:30,994 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016002: Processing weld deployment SimpleTth.war

              19:24:31,074 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named ContactForm in deployment unit deployment "SimpleTth.war" are as follows:

               

                      java:global/SimpleTth/ContactForm!com.tabletopheroes.simpletth.ContactForm

                      java:app/SimpleTth/ContactForm!com.tabletopheroes.simpletth.ContactForm

                      java:module/ContactForm!com.tabletopheroes.simpletth.ContactForm

                      java:global/SimpleTth/ContactForm

                      java:app/SimpleTth/ContactForm

                      java:module/ContactForm

               

              19:24:32,245 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016005: Starting Services for CDI deployment: SimpleTth.war

              19:24:32,322 INFO  [org.jboss.weld.Version] (MSC service thread 1-1) WELD-000900 1.1.5 (AS71)

              19:24:32,606 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment SimpleTth.war in 35ms

              19:24:32,584 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "SimpleTth.war" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"SimpleTth.war#SimpleTthPU\"jboss.naming.context.java.comp.env.jdbc.simpletthMissing[jboss.persistenceunit.\"SimpleTth.war#SimpleTthPU\"jboss.naming.context.java.comp.env.jdbc.simpletth]"]}

              19:24:32,626 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report

              JBAS014775:    New missing/unsatisfied dependencies:

                    service jboss.naming.context.java.comp.env.jdbc.simpletth (missing) dependents: [service jboss.persistenceunit."SimpleTth.war#SimpleTthPU"]

               

              19:24:32,650 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"SimpleTth.war#SimpleTthPU\"jboss.naming.context.java.comp.env.jdbc.simpletthMissing[jboss.persistenceunit.\"SimpleTth.war#SimpleTthPU\"jboss.naming.context.java.comp.env.jdbc.simpletth]"]}}}

               

              So I need to figure out why my persistance stuff isn't working.  Hmm...

              • 4. Re: Deployment: Unkown Error?
                Wolf-Dieter Fink Master

                Hi Brenden,

                is that related to https://community.jboss.org/message/771667?

                 

                Is your datasource deploy correct?

                maybe you have a look into the quickstarts

                How does your persistence unit look like?

                • 5. Re: Deployment: Unkown Error?
                  erasmo2 marciano2 Master

                  In JBoss7 it does not exist namefile-ds.xml.

                   

                  Probably your web-app is looking for a similar file

                  • 6. Re: Deployment: Unkown Error?
                    Brenden Towey Newbie

                    Yes, Wolf, I think this problem might be related to my other message.  I thought I had the datasource correct, but now I'm not so sure.  There's at least a chance it isn't deploying correctly.

                     

                    I just added a detailed reply in that other thread.  Rather than fragment the discussion too much, I'll leave that reply in that thread.

                     

                    I'll be checking the datasource today, maybe I can fix that at least.

                     

                    Erasmo:  It's a brand new, extremely small web app.  I doubt it's got any extra config files in it, but I'll give it a quick look.