6 Replies Latest reply on May 23, 2011 4:34 AM by tausuahmed

    deployment error

    vavijay.vijayakumara.hcl.com

      hi i am new to seam i using jboss 5.0 with seam 2.2.1 ,while running applicatio i am getting following errors



      org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure



      Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure


      Caused by: java.net.UnknownHostException: tdm


      org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss-5.0.1.GA/server/default/tmp/a2s3n4a-yli4m-gnwobqi4-1-gnwoc5t0-o/seamDemo.ear/seamDemo.war/ deployment failed



      DEPLOYMENTS IN ERROR:
        Deployment vfsfile:/C:/jboss-5.0.1.GA/server/default/deploy/seamDemo.war/ is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss-5.0.1.GA/server/default/tmp/a2s3n4a-yli4m-gnwobqi4-1-gnwocdaz-p/seamDemo.war/ deployment failed
        Deployment vfsfile:/C:/jboss-5.0.1.GA/server/default/deploy/seamDemo.ear/ is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss-5.0.1.GA/server/default/tmp/a2s3n4a-yli4m-gnwobqi4-1-gnwoc5t0-o/seamDemo.ear/seamDemo.war/ deployment failed



      pls any one help me to resolve this problem


      Regards
      Vijaya Kumar.A

        • 1. Re: deployment error
          tausuahmed

          Hi Vijay,


          Show your datasource file, does your hostname name has tdm?


          Regards,
          Tauseef

          • 2. Re: deployment error
            vavijay.vijayakumara.hcl.com

            Hi Tauseef.,
            my database name is tdm ,
            I dont know where will be the data source file, and i want to know what is database schema name
            pls help me in sorting out my problem


            Regards
            Vijaya Kumar.A

            • 3. Re: deployment error
              tausuahmed

              Your datasource file will be in project/resource directory, and it will be deployed in jboss deploy folder as project-ds.xml


              Please go through sample seam-gen setup application http://docs.jboss.org/seam/1.1GA/reference/en/html/gettingstarted.html


              Regards,
              Tauseef

              • 4. Re: deployment error
                vavijay.vijayakumara.hcl.com
                HI  Tauseef., my datasource is not found in project/resources/..
                but it is in deploy folder in jboss

                my data ource content as follows

                <?xml version="1.0" encoding="UTF-8"?>
                <!DOCTYPE datasources
                    PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
                    "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
                <datasources>
                  
                   <local-tx-datasource>
                      <jndi-name>seamDemoDatasource</jndi-name>
                      <use-java-context>false</use-java-context>
                      <connection-url>jdbc:mysql://tdm</connection-url>
                      <driver-class>com.mysql.jdbc.Driver</driver-class>
                      <user-name>root</user-name>
                      <password>admin</password>
                   </local-tx-datasource>
                   
                </datasources>


                Regards
                Vijaya Kumar.A
                • 5. Re: deployment error
                  vavijay.vijayakumara.hcl.com

                  hi Tauseef.,


                  i am getting following error...
                  while running jboss



                  org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(project-ear.ear)
                       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                       at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)
                       at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1000)
                       at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
                       at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
                       at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
                       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:303)
                       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                       at org.jboss.Main.boot(Main.java:209)
                       at org.jboss.Main$1.run(Main.java:547)
                       at java.lang.Thread.run(Unknown Source)
                  Caused by: java.lang.RuntimeException: Error determining structure: project-ear.ear
                       at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:293)
                       at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
                       at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
                       at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
                       at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
                       ... 10 more
                  Caused by: java.lang.RuntimeException: jboss-seam.jar module listed in application.xml does not exist within .ear vfsfile:/C:/jboss-5.0.1.GA/server/default/deploy/project-ear.ear/
                       at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:272)
                       ... 14 more

                  • 6. Re: deployment error
                    tausuahmed

                    Vijay your connection url in datasource file should be like jdbc:mysql://hostname:port/tdm


                    What i prefer is first you set up sample project using seam documentation, If you have downloaded seam package you could see the examples.
                    Ant build the exmaples and deploy it your application server.


                    Regards,
                    Tauseef