13 Replies Latest reply on Jan 17, 2011 3:55 AM by Dinesh venkatesan

    How to deploy ear in Jboss 5.1.0GA

    Dinesh venkatesan Newbie

      Hi,

       

      I am using JBoss 5.1.0GA.

      I want to know how to deploy Ear file in jboss..?

      Is there any steps to follow ear deployment in jboss?

       

      Please anyone help me..

        • 1. Re: How to deploy ear in Jboss 5.1.0GA
          Nicklas Karlsson Master

          Drop the ear file in JBOSS_HOME/server/default/deploy

          • 2. Re: How to deploy ear in Jboss 5.1.0GA
            Dinesh venkatesan Newbie

            Hi Nicklas.

            Thanks for your reply..

            I am getting error if i drop to deploy folder..

            its showing some classloader problem.

             

            please help.

            • 3. Re: How to deploy ear in Jboss 5.1.0GA
              Nicklas Karlsson Master

              If I could solve your problem based on the information you have provided me, I wouldn't work where I currently do ;-)

               

              (post logs, stacktraces and code)

              • 4. Re: How to deploy ear in Jboss 5.1.0GA
                Dinesh venkatesan Newbie

                Hi,

                 

                I am getting error like this..

                 

                2010-12-29 23:21:53,934 INFO  [org.jboss.web.WebService] (main) Using RMI server codebase: http://127.0.0.1:8083/

                2010-12-29 23:21:59,255 INFO  [org.jboss.wsf.stack.jbws.NativeServerConfig] (main) JBoss Web Services - Stack Native Core

                2010-12-29 23:21:59,255 INFO  [org.jboss.wsf.stack.jbws.NativeServerConfig] (main) 3.1.2.GA

                2010-12-29 23:21:59,624 INFO  [org.jboss.dependency.plugins.AttributeCallbackItem] (main) Owner callback not implemented.

                2010-12-29 23:22:00,769 INFO  [org.jboss.logbridge.LogNotificationListener] (main) Adding notification listener for logging mbean "jboss.system:service=Logging,type=Log4jService" to server org.jboss.mx.server.MBeanServerImpl@9c22ff[ defaultDomain='jboss' ]

                2010-12-29 23:22:44,864 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@16247393{vfsfile:/root/Desktop/jboss-5.1.0.GA/server/IA_REP/deploy/profileservice-secured.jar/}

                2010-12-29 23:22:44,864 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@16247393{vfsfile:/root/Desktop/jboss-5.1.0.GA/server/IA_REP/deploy/profileservice-secured.jar/}

                2010-12-29 23:22:44,864 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@16247393{vfsfile:/root/Desktop/jboss-5.1.0.GA/server/IA_REP/deploy/profileservice-secured.jar/}

                2010-12-29 23:22:44,864 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@16247393{vfsfile:/root/Desktop/jboss-5.1.0.GA/server/IA_REP/deploy/profileservice-secured.jar/}

                2010-12-29 23:22:46,680 INFO  [org.jboss.mx.remoting.service.JMXConnectorServerService] (main) JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector

                2010-12-29 23:22:46,821 INFO  [org.jboss.mail.MailService] (main) Mail Service bound to java:/Mail

                2010-12-29 23:22:49,255 WARN  [org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore] (main) WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.

                2010-12-29 23:22:49,271 WARN  [org.jboss.annotation.factory.AnnotationCreator] (main) No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent

                2010-12-29 23:22:49,362 WARN  [org.jboss.annotation.factory.AnnotationCreator] (main) No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent

                2010-12-29 23:22:49,424 INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) JBossTS Transaction Service (JTA version - tag:JBOSSTS_4_6_1_GA) - JBoss Inc.

                2010-12-29 23:22:49,424 INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) Setting up property manager MBean and JMX layer

                2010-12-29 23:22:49,677 INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) Initializing recovery manager

                2010-12-29 23:22:49,787 INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) Recovery manager configured

                2010-12-29 23:22:49,787 INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) Binding TransactionManager JNDI Reference

                2010-12-29 23:22:49,817 INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) Starting transaction recovery manager

                2010-12-29 23:22:50,208 INFO  [org.apache.catalina.core.AprLifecycleListener] (main) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/client:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib

                2010-12-29 23:22:50,242 INFO  [org.apache.coyote.http11.Http11Protocol] (main) Initializing Coyote HTTP/1.1 on http-127.0.0.1-28080

                2010-12-29 23:22:50,243 INFO  [org.apache.coyote.ajp.AjpProtocol] (main) Initializing Coyote AJP/1.3 on ajp-127.0.0.1-28009

                2010-12-29 23:22:50,254 INFO  [org.apache.catalina.core.StandardService] (main) Starting service jboss.web

                2010-12-29 23:22:50,256 INFO  [org.apache.catalina.core.StandardEngine] (main) Starting Servlet Engine: JBoss Web/2.1.3.GA

                2010-12-29 23:22:50,291 INFO  [org.apache.catalina.startup.Catalina] (main) Server startup in 47 ms

                2010-12-29 23:22:50,318 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/jbossws

                2010-12-29 23:22:51,162 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/invoker

                2010-12-29 23:22:51,187 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/web-console

                2010-12-29 23:22:51,467 INFO  [org.jboss.resource.deployers.RARDeployment] (main) Required license terms exist, view vfszip:/root/Desktop/jboss-5.1.0.GA/server/IA_REP/deploy/jboss-local-jdbc.rar/META-INF/ra.xml

                2010-12-29 23:22:51,477 INFO  [org.jboss.resource.deployers.RARDeployment] (main) Required license terms exist, view vfszip:/root/Desktop/jboss-5.1.0.GA/server/IA_REP/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml

                2010-12-29 23:22:51,493 INFO  [org.jboss.resource.deployers.RARDeployment] (main) Required license terms exist, view vfszip:/root/Desktop/jboss-5.1.0.GA/server/IA_REP/deploy/jms-ra.rar/META-INF/ra.xml

                2010-12-29 23:22:51,514 INFO  [org.jboss.resource.deployers.RARDeployment] (main) Required license terms exist, view vfszip:/root/Desktop/jboss-5.1.0.GA/server/IA_REP/deploy/mail-ra.rar/META-INF/ra.xml

                2010-12-29 23:22:51,526 INFO  [org.jboss.resource.deployers.RARDeployment] (main) Required license terms exist, view vfszip:/root/Desktop/jboss-5.1.0.GA/server/IA_REP/deploy/quartz-ra.rar/META-INF/ra.xml

                2010-12-29 23:22:51,630 INFO  [org.quartz.simpl.SimpleThreadPool] (main) Job execution threads will use class loader of thread: main

                2010-12-29 23:22:51,656 INFO  [org.quartz.core.QuartzScheduler] (main) Quartz Scheduler v.1.5.2 created.

                2010-12-29 23:22:51,658 INFO  [org.quartz.simpl.RAMJobStore] (main) RAMJobStore initialized.

                2010-12-29 23:22:51,658 INFO  [org.quartz.impl.StdSchedulerFactory] (main) Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'

                2010-12-29 23:22:51,659 INFO  [org.quartz.impl.StdSchedulerFactory] (main) Quartz scheduler version: 1.5.2

                2010-12-29 23:22:51,659 INFO  [org.quartz.core.QuartzScheduler] (main) Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.

                2010-12-29 23:22:51,751 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (main) Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=TestBBSRApp' to JNDI name 'java:TestBBSRApp'

                2010-12-29 23:22:51,785 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (main) Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=TestCVSBBSR' to JNDI name 'java:TestCVSBBSR'

                2010-12-29 23:22:51,805 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (main) Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=TestWorkflow' to JNDI name 'java:TestWorkflow'

                2010-12-29 23:22:51,826 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (main) Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=UtMetaRepos' to JNDI name 'java:UtMetaRepos'

                2010-12-29 23:22:51,866 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (main) Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=UtRepos' to JNDI name 'java:UtRepos'

                2010-12-29 23:22:51,886 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (main) Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=VarunTest' to JNDI name 'java:VarunTest'

                2010-12-29 23:22:51,907 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (main) Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=Varuntest' to JNDI name 'java:Varuntest'

                2010-12-29 23:22:52,265 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (main) Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'

                2010-12-29 23:22:53,251 INFO  [org.jboss.jms.server.ServerPeer] (main) JBoss Messaging 1.4.3.GA server [0] started

                2010-12-29 23:22:53,320 INFO  [org.jboss.jms.server.destination.QueueService] (main) Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000

                2010-12-29 23:22:53,372 INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactory] (main) Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds

                2010-12-29 23:22:53,372 INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactory] (main) org.jboss.jms.server.connectionfactory.ConnectionFactory@b8f952 started

                2010-12-29 23:22:53,373 INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactoryJNDIMapper] (main) supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover

                2010-12-29 23:22:53,373 INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactoryJNDIMapper] (main) supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing

                2010-12-29 23:22:53,376 INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactory] (main) Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds

                2010-12-29 23:22:53,376 INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactory] (main) org.jboss.jms.server.connectionfactory.ConnectionFactory@3a2b23 started

                2010-12-29 23:22:53,377 INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactory] (main) Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds

                2010-12-29 23:22:53,378 INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactory] (main) org.jboss.jms.server.connectionfactory.ConnectionFactory@1f73362 started

                2010-12-29 23:22:53,378 INFO  [org.jboss.jms.server.destination.QueueService] (main) Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000

                2010-12-29 23:22:53,449 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (main) Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'

                2010-12-29 23:22:53,469 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (main) Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=JOADS' to JNDI name 'java:JOADS'

                2010-12-29 23:22:53,739 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main) Created KernelDeployment for: profileservice-secured.jar

                2010-12-29 23:22:53,742 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main) installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3

                2010-12-29 23:22:53,742 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)   with dependencies:

                2010-12-29 23:22:53,742 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)   and demands:

                2010-12-29 23:22:53,742 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)     jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView

                2010-12-29 23:22:53,742 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)     jboss.ejb:service=EJBTimerService

                2010-12-29 23:22:53,742 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)   and supplies:

                2010-12-29 23:22:53,743 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)     Class:org.jboss.profileservice.spi.ProfileService

                2010-12-29 23:22:53,743 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)     jndi:SecureProfileService/remote

                2010-12-29 23:22:53,743 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)     jndi:SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService

                2010-12-29 23:22:53,743 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main) Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3) to KernelDeployment of: profileservice-secured.jar

                2010-12-29 23:22:53,743 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main) installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3

                2010-12-29 23:22:53,743 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)   with dependencies:

                2010-12-29 23:22:53,743 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)   and demands:

                2010-12-29 23:22:53,744 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)     jboss.ejb:service=EJBTimerService

                2010-12-29 23:22:53,744 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)   and supplies:

                2010-12-29 23:22:53,744 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)     jndi:SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager

                2010-12-29 23:22:53,744 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)     Class:org.jboss.deployers.spi.management.deploy.DeploymentManager

                2010-12-29 23:22:53,744 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)     jndi:SecureDeploymentManager/remote

                2010-12-29 23:22:53,744 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main) Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3) to KernelDeployment of: profileservice-secured.jar

                2010-12-29 23:22:53,744 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main) installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3

                2010-12-29 23:22:53,744 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)   with dependencies:

                2010-12-29 23:22:53,744 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)   and demands:

                2010-12-29 23:22:53,744 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)     jboss.ejb:service=EJBTimerService

                2010-12-29 23:22:53,744 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)   and supplies:

                2010-12-29 23:22:53,744 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)     jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView

                2010-12-29 23:22:53,744 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)     Class:org.jboss.deployers.spi.management.ManagementView

                2010-12-29 23:22:53,745 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)     jndi:SecureManagementView/remote

                2010-12-29 23:22:53,745 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main) Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3) to KernelDeployment of: profileservice-secured.jar

                2010-12-29 23:22:53,748 INFO  [org.jboss.ejb3.endpoint.deployers.EJB3EndpointDeployer] (main) Deploy AbstractBeanMetaData@360d58{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}

                2010-12-29 23:22:53,748 INFO  [org.jboss.ejb3.endpoint.deployers.EJB3EndpointDeployer] (main) Deploy AbstractBeanMetaData@cf8b94{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}

                2010-12-29 23:22:53,748 INFO  [org.jboss.ejb3.endpoint.deployers.EJB3EndpointDeployer] (main) Deploy AbstractBeanMetaData@40bf1c{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}

                2010-12-29 23:22:53,822 INFO  [org.jboss.ejb3.session.SessionSpecContainer] (main) Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3

                2010-12-29 23:22:53,828 INFO  [org.jboss.ejb3.EJBContainer] (main) STARTED EJB: org.jboss.profileservice.ejb.SecureDeploymentManager ejbName: SecureDeploymentManager

                2010-12-29 23:22:53,867 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] (main) Binding the following Entries in Global JNDI:

                 

                    SecureDeploymentManager/remote - EJB3.x Default Remote Business Interface

                    SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager - EJB3.x Remote Business Interface

                 

                2010-12-29 23:22:53,927 INFO  [org.jboss.ejb3.session.SessionSpecContainer] (main) Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3

                2010-12-29 23:22:53,927 INFO  [org.jboss.ejb3.EJBContainer] (main) STARTED EJB: org.jboss.profileservice.ejb.SecureManagementView ejbName: SecureManagementView

                2010-12-29 23:22:53,935 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] (main) Binding the following Entries in Global JNDI:

                 

                    SecureManagementView/remote - EJB3.x Default Remote Business Interface

                    SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView - EJB3.x Remote Business Interface

                 

                2010-12-29 23:22:53,975 INFO  [org.jboss.ejb3.session.SessionSpecContainer] (main) Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3

                2010-12-29 23:22:53,976 INFO  [org.jboss.ejb3.EJBContainer] (main) STARTED EJB: org.jboss.profileservice.ejb.SecureProfileServiceBean ejbName: SecureProfileService

                2010-12-29 23:22:53,983 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] (main) Binding the following Entries in Global JNDI:

                 

                    SecureProfileService/remote - EJB3.x Default Remote Business Interface

                    SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService - EJB3.x Remote Business Interface

                 

                2010-12-29 23:22:54,049 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/admin-console

                2010-12-29 23:22:54,095 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (main) Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console'

                2010-12-29 23:22:55,991 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/JfleXDesigner

                2010-12-29 23:22:56,265 INFO  [org.apache.struts.tiles.TilesPlugin] (main) Tiles definition factory loaded for module ''.

                2010-12-29 23:22:56,267 INFO  [org.apache.struts.validator.ValidatorPlugIn] (main) Loading validation rules file from '/WEB-INF/validator-rules.xml'

                2010-12-29 23:22:56,267 INFO  [org.apache.struts.validator.ValidatorPlugIn] (main) Loading validation rules file from '/WEB-INF/validation.xml'

                2010-12-29 23:22:56,324 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/

                2010-12-29 23:22:56,348 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/jmx-console

                2010-12-29 23:22:57,490 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/joa

                2010-12-29 23:22:58,425 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/joa]] (main) StandardWrapper.Throwable

                java.lang.NullPointerException

                    at java.util.Properties$LineReader.readLine(Properties.java:435)

                    at java.util.Properties.load0(Properties.java:354)

                    at java.util.Properties.load(Properties.java:342)

                    at com.tcs.joa.context.ApplicationContext.setJNDIProperties(ApplicationContext.java:1291)

                    at com.tcs.joa.struts.ActionServlet.init(ActionServlet.java:117)

                    at javax.servlet.GenericServlet.init(GenericServlet.java:212)

                    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)

                    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)

                    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)

                    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)

                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)

                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)

                    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

                    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

                    at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                    at java.lang.reflect.Method.invoke(Method.java:616)

                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

                    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

                    at $Proxy38.start(Unknown Source)

                    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

                    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

                    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

                    at org.jboss.system.ServiceController.start(ServiceController.java:460)

                    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

                    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

                    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

                    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

                    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

                    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

                    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

                    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                    at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

                    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

                    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

                    at org.jboss.Main.boot(Main.java:221)

                    at org.jboss.Main$1.run(Main.java:556)

                    at java.lang.Thread.run(Thread.java:636)

                2010-12-29 23:22:58,426 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/joa]] (main) Servlet /joa threw load() exception

                java.lang.NullPointerException

                    at java.util.Properties$LineReader.readLine(Properties.java:435)

                    at java.util.Properties.load0(Properties.java:354)

                    at java.util.Properties.load(Properties.java:342)

                    at com.tcs.joa.context.ApplicationContext.setJNDIProperties(ApplicationContext.java:1291)

                    at com.tcs.joa.struts.ActionServlet.init(ActionServlet.java:117)

                    at javax.servlet.GenericServlet.init(GenericServlet.java:212)

                    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)

                    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)

                    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)

                    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)

                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)

                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)

                    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

                    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

                    at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                    at java.lang.reflect.Method.invoke(Method.java:616)

                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

                    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

                    at $Proxy38.start(Unknown Source)

                    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

                    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

                    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

                    at org.jboss.system.ServiceController.start(ServiceController.java:460)

                    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

                    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

                    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

                    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

                    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

                    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

                    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

                    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                    at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

                    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

                    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

                    at org.jboss.Main.boot(Main.java:221)

                    at org.jboss.Main$1.run(Main.java:556)

                    at java.lang.Thread.run(Thread.java:636)

                2010-12-29 23:22:58,475 INFO  [org.apache.coyote.http11.Http11Protocol] (main) Starting Coyote HTTP/1.1 on http-127.0.0.1-28080

                2010-12-29 23:22:58,536 INFO  [org.apache.coyote.ajp.AjpProtocol] (main) Starting Coyote AJP/1.3 on ajp-127.0.0.1-28009

                2010-12-29 23:22:58,542 INFO  [org.jboss.bootstrap.microcontainer.ServerImpl] (main) JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 1m:8s:252ms

                 

                 

                Thanks

                Dinesh

                • 5. Re: How to deploy ear in Jboss 5.1.0GA
                  Nicklas Karlsson Master

                  You have a NPE at at com.tcs.joa.context.ApplicationContext.setJNDIProperties(ApplicationContext.java:1291), what's in that class?

                  • 6. Re: How to deploy ear in Jboss 5.1.0GA
                    Dinesh venkatesan Newbie

                    Hi,

                     

                    Thanks for your reply..

                     

                    but same ear is working fine in jboss 3.2.6.

                     

                    Its showing error in JBoss 5.1.0GA only..

                    • 7. Re: How to deploy ear in Jboss 5.1.0GA
                      Nicklas Karlsson Master

                      Then something(tm) has changed. You'll need to figure out where the stuff that is causing the NPE is null.

                      • 8. Re: How to deploy ear in Jboss 5.1.0GA
                        Dinesh venkatesan Newbie

                        I didn't change any content in that Ear file..

                         

                        problem is class is not loaded in jboss 5.1.0GA.

                        • 9. Re: How to deploy ear in Jboss 5.1.0GA
                          Nicklas Karlsson Master

                          Sigh.

                           

                          But it's not working, right? Therefore you have a problem, right? Which you'll have to solve. And it's not related to how many threads you open on the issue. It's about in the amount of details you provide.

                           

                          Saying it worked in a previous version is like saying "but it worked fine yesterday!" when your computer fails to start today.

                          • 10. Re: How to deploy ear in Jboss 5.1.0GA
                            Benjamin Seyinbour Expert

                            Hi Dinesh,

                             

                            Things to check:
                            1. What version of java are you using? Your Properties.java doesn't look like it is the current version i.e., java6.
                            2. What is in your jboss-app.xml and jboss-web.xml -- classloader-wise?
                            3. Is your properties file deposited under yourWebApp root or sub directory?
                            4. Can we see your load properties code or maybe not -- since it already works as you have testified?

                             

                            Here is something you might want to try:

                             

                            jboss-app.xml

                             

                            <jboss-app>
                            <loader-repository>{yourEARNameWithoutTheExtension}:archive={yourEARNameWithTheExtension}</loader-repository>

                            </jboss-app>

                             

                            cheers!

                            • 11. Re: How to deploy ear in Jboss 5.1.0GA
                              Dinesh venkatesan Newbie

                              Hi,

                               

                              I am using jdk 1.6.

                               

                              jboss-app.xml : -

                               

                              <?xml version="1.0" encoding="UTF-8"?>

                               

                              <jboss-app>

                                <loader-repository>

                                com.example:archive=joa.ear

                                   <loader-repository-config>

                                   java2ParentDelegation=false

                                   </loader-repository-config>

                                </loader-repository>

                              </jboss-app>

                               

                               

                              jboss-web.xml :-

                               

                              <?xml version="1.0" encoding="UTF-8"?>

                               

                              <jboss-web>

                                 <class-loading java2ClassLoadingCompliance="false">

                                    <loader-repository>

                                       com.example:archive=joa.war

                                       <loader-repository-config>java2ParentDelegation=false</loader-repository-config>

                                    </loader-repository>

                                 </class-loading>

                              </jboss-web>

                               

                               

                              but still i am getting same error..

                               

                              but its working fine in jboss 3.2.6,that is main problem.

                               

                              Plz any one help me..

                              • 12. How to deploy ear in Jboss 5.1.0GA
                                Benjamin Seyinbour Expert

                                Hi Dinesh venkatesa,

                                 

                                jboss-app and jboss-web have changed since Jboss-3.2.6. I think your entries in jboss-web.xml would be okay if it were a standalone war deployment, but the presence of a  jboss.app, makes me assume that you are using ear deployment rather than a standalone war.

                                 

                                Also beware that loader isolation (i.e. <loader-repository-config>  java2ParentDelegation=false     </loader-repository-config> ) will load your WEB-INF/lib first before any other.

                                 

                                Please note that <class-loading> is no longer supported since Jboss-5 and maybe even earlier. If you ask me, I would suggest that you disuse the entries in your jboss-web and just use your jboss-app.xml.  I would suggest that you try with the following:

                                 

                                jboss-app.xml:

                                 

                                <jboss-app>

                                  <loader-repository>com.example:archive=joa.ear<loader-repository-config>  </loader-repository>

                                </jboss-app>

                                 

                                And

                                 

                                jboss-web.xml:

                                 

                                <jboss-web>

                                <!-- I noticed “[/joa]”  in you error stack and I assume this must be your context-root; enter the following (without the “/”):

                                <context-root>joa</context-root>

                                </jboss-web>

                                 

                                 

                                • 13. How to deploy ear in Jboss 5.1.0GA
                                  Dinesh venkatesan Newbie

                                  Hi Benjamin,

                                   

                                  Thanks for your reply.

                                   

                                  I am using ear file only not a standalone war file.

                                   

                                  I followed your suggestion but i am getting the same error which i already post in this discussion.