7 Replies Latest reply on Jan 19, 2009 6:23 PM by Pedro Gallello Bonino

    First Deployment - HelloWorld app

    Pedro Gallello Bonino Newbie

      Hi.

      I posted this at Configuration, Instalation and deployment section. But I'll post it here as well.

      I have built a HelloWorld EJB application consisting in a Servlet and a Session Bean. Ant worked propperly and everything seems to be correct.

      JBoss instalation is ok and startup works well too.

      But when deploying the .ear file, the following error appears:

      00:47:26,462 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/usr/local/jboss/jboss-5.0.0.GA/server/default/deploy/HelloWorld.ear state=Not Installed mode=Manual requiredState=Parse
      org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/usr/local/jboss/jboss-5.0.0.GA/server/default/deploy/HelloWorld.ear/HelloWorld.war
       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:337)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:297)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:269)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:230)
       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: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:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
       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:545)
       at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
       at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
       at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
       at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
       at java.lang.Thread.run(Thread.java:613)
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to parse schema for nsURI=, baseURI=null, schemaLocation=http://java.sun.com/j2ee/dtds/web-app_2.2.dtd
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
       at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
       at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:199)
       at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
       at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
       at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
       at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
       at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:188)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:323)
       ... 28 more
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to parse schema for nsURI=, baseURI=null, schemaLocation=http://java.sun.com/j2ee/dtds/web-app_2.2.dtd
       at org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver.resolve(DefaultSchemaResolver.java:340)
       at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:306)
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
       at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
       at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
       at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
       at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
       at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
       at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
       at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
       at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
       ... 36 more
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: -1:-1 44:3 The markup in the document preceding the root element must be well-formed.
       at org.jboss.xb.binding.sunday.unmarshalling.XsdBinderTerminatingErrorHandler.handleError(XsdBinderTerminatingErrorHandler.java:40)
       at org.apache.xerces.impl.xs.XMLSchemaLoader.reportDOMFatalError(Unknown Source)
       at org.apache.xerces.impl.xs.XSLoaderImpl.load(Unknown Source)
       at org.jboss.xb.binding.Util.loadSchema(Util.java:395)
       at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:175)
       at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:146)
       at org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver.resolve(DefaultSchemaResolver.java:332)
       ... 52 more
      00:47:26,464 WARN [HDScanner] Failed to process changes
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      *** CONTEXTS IN ERROR: Name -> Error
      
      vfszip:/usr/local/jboss/jboss-5.0.0.GA/server/default/deploy/HelloWorld.ear -> org.jboss.xb.binding.JBossXBRuntimeException: -1:-1 44:3 The markup in the document preceding the root element must be well-formed.


      Any idea on what could be happening to the app? is the .ear correctly built? What .xml could be causing the parsing error?

      Any idea would be helpful.

      Thanks in advance

      Regards

        • 1. Re: First Deployment - HelloWorld app
          jaikiran pai Master

           

          Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to parse schema for nsURI=, baseURI=
          null, schemaLocation=http://java.sun.com/j2ee/dtds/web-app_2.2.dtd
           at org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver.resolve(DefaultSchemaResolver.ja
          ...
          Caused by: org.jboss.xb.binding.JBossXBRuntimeException: -1:-1 44:3 The markup in the document prece
          ding the root element must be well-formed.
          


          Looks like your web.xml is incorrect. See if you can find what the problem is with that xml. Else post the contents here.



          • 2. Re: First Deployment - HelloWorld app
            Pedro Gallello Bonino Newbie

            Hello.

            Thank you very much for your answer. I must say though that I have advanced a little in my problem. As you say, there was something both with my web.xml and my application.xml.

            However, I get another error now. I'm not at home with my laptop (as soon as I get home, I'll post more details), but what I get now is a Not Bound error to do with my HelloWorldServlet. Maybe in the lookup line.

            This afternoon (Spain) I'll give more details. Please, stay tunned in order to try helping me. It's very kind of you :D.

            Sorry about not having formatted very well the other topic.

            Thanks again.

            Pedro

            • 3. Re: First Deployment - HelloWorld app
              jaikiran pai Master

               

              This afternoon (Spain) I'll give more details. Please, stay tunned in order to try helping me.


              Take your time :)

              • 4. Re: First Deployment - HelloWorld app
                Pedro Gallello Bonino Newbie

                Hello again :D .

                So I'm back at home with my laptop.

                With the JBoss down, I copy the ear file and start the JBoss server.

                It runs well, but shows the following error:


                15:08:05,261 ERROR [AbstractKernelController] Error installing to Start: name=ProxyFactory/HelloWorld/null state=Create
                java.lang.NullPointerException
                 at org.jboss.ejb3.proxy.factory.session.SessionProxyFactoryBase.start(SessionProxyFactoryBase.java:376)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                 at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                 at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                 at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
                 at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
                 at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
                 at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
                 at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
                 at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
                 at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
                 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.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
                 at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:106)
                 at org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar.install(Ejb3McRegistrar.java:390)
                 at org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar.bind(Ejb3McRegistrar.java:244)
                 at org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase.registerProxyFactory(JndiSessionRegistrarBase.java:1104)
                 at org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase.createJndiReferenceBindingSet(JndiSessionRegistrarBase.java:238)
                 at org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase.bindEjb(JndiSessionRegistrarBase.java:147)
                 at org.jboss.ejb3.session.SessionContainer.lockedStart(SessionContainer.java:174)
                 at org.jboss.ejb3.session.SessionSpecContainer.lockedStart(SessionSpecContainer.java:606)
                 at org.jboss.ejb3.stateless.StatelessContainer.lockedStart(StatelessContainer.java:247)
                 at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:879)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                 at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                 at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                 at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
                 at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
                 at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
                 at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
                 at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
                 at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
                 at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
                 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.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
                 at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
                 at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
                 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:1598)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 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:545)
                 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
                 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(Thread.java:613)
                15:08:05,276 INFO [SessionSpecContainer] Stopping jboss.j2ee:ear=HelloWorld.ear,jar=HelloWorld.jar,name=HelloWorld,service=EJB3
                15:08:05,278 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:ear=HelloWorld.ear,jar=HelloWorld.jar,name=HelloWorld,service=EJB3 state=Create
                java.lang.NullPointerException
                 at org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase.isHomeAndBusinessBoundTogether(JndiSessionRegistrarBase.java:989)
                 at org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase.createJndiReferenceBindingSet(JndiSessionRegistrarBase.java:257)
                 at org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase.bindEjb(JndiSessionRegistrarBase.java:147)
                 at org.jboss.ejb3.session.SessionContainer.lockedStart(SessionContainer.java:174)
                 at org.jboss.ejb3.session.SessionSpecContainer.lockedStart(SessionSpecContainer.java:606)
                 at org.jboss.ejb3.stateless.StatelessContainer.lockedStart(StatelessContainer.java:247)
                 at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:879)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                 at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                 at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                 at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
                 at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
                 at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
                 at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
                 at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
                 at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
                 at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
                 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.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
                 at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
                 at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
                 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:1598)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 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:545)
                 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
                 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(Thread.java:613)
                15:08:06,169 INFO [TomcatDeployment] deploy, ctxPath=/HelloWorld, vfsUrl=HelloWorld.ear/HelloWorld.war
                15:08:06,263 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
                
                *** CONTEXTS IN ERROR: Name -> Error
                
                ProxyFactory/HelloWorld/null -> java.lang.NullPointerException
                
                jboss.j2ee:ear=HelloWorld.ear,jar=HelloWorld.jar,name=HelloWorld,service=EJB3 -> java.lang.NullPointerException


                When I enter in the JMX Console --> jboss.j2ee, I find the following:

                ear=HelloWorld.ear,jar=HelloWorld.jar,name=HelloWorld,service=EJB3
                ear=HelloWorld.ear,jar=HelloWorld.jar,service=EJB3
                service=EARClassLoaderDeployer
                service=EARDeployer


                So it seems to be deployed, but when I ask for http://localhost:8080/HelloWorld/HelloWorlds, I get the following error:
                
                Estado HTTP 500 -
                
                type Informe de Excepción
                
                mensaje
                
                descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.
                
                excepción
                
                javax.servlet.ServletException: Error instanciando clase de servlet HelloWorldServlet
                 org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                 org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                 org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                 org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                 org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
                 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                 java.lang.Thread.run(Thread.java:613)
                causa raÃz
                
                javax.naming.NameNotFoundException: HelloWorld not bound
                 org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
                 org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
                 org.jnp.server.NamingServer.getObject(NamingServer.java:785)
                 org.jnp.server.NamingServer.lookup(NamingServer.java:443)
                 org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713)
                 org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
                 javax.naming.InitialContext.lookup(InitialContext.java:351)
                 HelloWorldServlet.<init>(HelloWorldServlet.java:22)
                 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                 java.lang.reflect.Constructor.newInstance(Constructor.java:494)
                 java.lang.Class.newInstance0(Class.java:350)
                 java.lang.Class.newInstance(Class.java:303)
                 org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:242)
                 org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                 org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                 org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                 org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                 org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
                 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                 java.lang.Thread.run(Thread.java:613)
                nota La traza completa de la causa de este error se encuentra en los archivos de diario de JBoss Web/2.1.1.GA.
                
                JBoss Web/2.1.1.GA


                For some reason, when I type again the same URL (from the second time and so on), I get a different error:

                Estado HTTP 404 - No está disponible el Servlet HelloWorldServlet
                
                type Informe de estado
                
                mensaje No está disponible el Servlet HelloWorldServlet
                
                descripción El recurso requerido (No está disponible el Servlet HelloWorldServlet) no está disponible.
                
                JBoss Web/2.1.1.GA


                That means:

                Status HTTP 404 - Not available Servlet HelloWorldServlet
                Type - Status report
                Message - Not available Servlet HelloWorldServlet
                Description - Required resource not available


                Finally, just for you to know, what I am deploying is what you find in the following package:

                http://developer.apple.com/internet/java/examples/enterprisejava.tar.gz

                Where you find the this class file for the bean: http://developer.apple.com/internet/java/examples/helloworld1_source.html

                and the Servlet:
                http://developer.apple.com/internet/java/examples/helloworld2_source.html

                I followed the instructions as found here: http://developer.apple.com/internet/java/enterprisejava.html

                Well... I think is a good summary of my life ;). I hope you find something wrong there. Thank you again in advance.

                Regards

                Pedro

                • 5. Re: First Deployment - HelloWorld app
                  jaikiran pai Master

                  Did you do any changes to your server configurations? On a clean JBossAS-5.0 GA, the application that you uploaded HelloWorld.ear deploys without any issues (after fixing the web.xml dtd issue) :

                  
                  20:16:33,498 INFO [EjbDeployer] installing bean: ejb/HelloWorld.jar#HelloWorld,uid33419270
                  20:16:33,499 INFO [EjbDeployer] with dependencies:
                  20:16:33,499 INFO [EjbDeployer] and supplies:
                  20:16:33,499 INFO [EjbDeployer] jndi:HelloWorld/HelloWorld
                  20:16:33,499 INFO [EjbDeployer] jndi:HelloWorld
                  20:16:33,641 INFO [TomcatDeployment] deploy, ctxPath=/HelloWorld, vfsUrl=HelloWorld.ear/HelloWorld.war
                  20:16:33,768 INFO [EjbModule] Deploying HelloWorld
                  20:16:33,797 WARN [EjbModule] EJB configured to bypass security. Please verify if this is intended. Bean=HelloWorld Deployment=vfszip:/somepath/jboss-5.0.0.GA/server/default/deploy/HelloWorld.ear/HelloWorld.jar
                  20:16:33,893 INFO [ProxyFactory] Bound EJB Home 'HelloWorld' to jndi 'HelloWorld'


                  Your expection stacktrace shows that this is being identified as a EJB3 application (which it is not).


                  • 6. Re: First Deployment - HelloWorld app
                    Pedro Gallello Bonino Newbie

                    Uhm... let's rewind a little... Did you deploy the application?

                    How did you solve the dtd issue? I just commented the !DOCTYPE.

                    When I have a little of time, I'll reinstall the JBoss. I think I didn't touch anything, but I made so many things, that I don't really know.

                    Just to mention... although I think that this shouldn't have anything to do: I'm running this in a Mac Book X 10.4. The jboss installation folder is /usr/local/jboss. I have the jboss-5.0.GA folder and another folder that is created automatically I don't remember when. That folder name begins JBoss (capitals). The deploy folder is: /usr/local/jboss/jboss-5.0.GA/server/default/deploy. Is this the propper configuration?

                    I didn't understand your last sentence.

                    Thanks again. (When I have time, I'll post after re-instaling Jboss)

                    • 7. Re: First Deployment - HelloWorld app
                      Pedro Gallello Bonino Newbie

                      Forget my last post.

                      So I finally reinstalled jboss and I got it. I don't know what I had touched, but certanly something important ;).

                      Now the application is deployed and I have a world to investigate and learn :P

                      Thank you so much and... again... stay tunned. Something tells me that I'll need your help in the future ;)

                      Bye

                      Pedro