1 2 Previous Next 17 Replies Latest reply on Jun 24, 2009 3:55 PM by jbosseval1

    both deployment methods fail - WAR and exploded in J5GA

    mattzyzy

      using JBoss5.00GA+JDK5_017+LinuxEL5 in default mode, when deploying exploded .WAR folder in default/deploy returned errors on the server console below .then After reading those errors for hours I decided to delete the .war folder and continued just using war files to see if it is okay , but still failed .
      ] Started in 2m:27s:556ms
      17:24:25,221 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/home/usercentos/jboss-5.0.0.GA/server/default/deploy/appz.war/ state=Not Installed mode=Manual requiredState=Parse
      org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/home/usercentos/jboss-5.0.0.GA/server/default/deploy/appz.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.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:595)
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Element {http://java.sun.com/xml/ns/j2ee http://java.sun.com/j2ee/dtds/web-app_2_2.dtd}web-app is not bound as a global element.
      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)
      ... 27 more
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Element {http://java.sun.com/xml/ns/j2ee http://java.sun.com/j2ee/dtds/web-app_2_2.dtd}web-app is not bound as a global element.
      at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:667)
      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.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)
      ... 35 more
      17:24:25,249 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

      vfsfile:/home/usercentos/jboss-5.0.0.GA/server/default/deploy/appz.war/ -> org.jboss.xb.binding.JBossXBRuntimeException: Element {http://java.sun.com/xml/ns/j2ee http://java.sun.com/j2ee/dtds/web-app_2_2.dtd}web-app is not bound as a global element.


      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:665)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293)
      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:595)
      -----------------------------------

        • 1. Re: both deployment methods fail - WAR and exploded in J5GA
          mattzyzy

          And the WAR file ,same application appz return the errors below.

          -------Failure using war file contains Spring2+Hibernate3+Jasperreport+acegi/springSecurity/javamail------

          Caused by: java.lang.RuntimeException: Failed to read zip file: org.jboss.virtual.plugins.context.zip.ZipFileWrapper@f8989d - /home/usercentos/jboss-5.0.0.GA/server/default/deploy/appz.war
          at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:563)
          at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:693)
          at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:737)
          at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:175)
          at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:542)
          at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:155)
          at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:106)
          at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:451)
          at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:64)
          ... 18 more
          Caused by: java.util.zip.ZipException: error in opening zip file
          at java.util.zip.ZipFile.open(Native Method)
          at java.util.zip.ZipFile.(ZipFile.java:203)
          at java.util.zip.ZipFile.(ZipFile.java:234)
          at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWrapper.java:175)
          at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.acquire(ZipFileWrapper.java:245)
          at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:461)
          at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:554)
          ... 26 more


          --------after delete the problematic war file-----------------


          17:36:17,590 WARN [HDScanner] Failed to process changes
          org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

          *** DEPLOYMENTS MISSING DEPLOYERS: Name

          vfszip:/home/usercentos/jboss-5.0.0.GA/server/default/deploy/appz.war

          at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
          at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:665)
          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293)
          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:595)
          -----

          Thank you in advance, any help is greatly appreciated .

          • 2. Re: both deployment methods fail - WAR and exploded in J5GA
            jaikiran

             

            Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Element {http://java.sun.com/xml/ns/j2ee http://java.sun.com/j2ee/dtds/web-app_2_2.dtd}web-app is not bound as a global element.


            Please post the contents of the web.xml in appz.war/WEB-INF folder. Looks like an incorrect dtd is used in that file.

            While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.

            • 3. Re: both deployment methods fail - WAR and exploded in J5GA
              mattzyzy

              mmmkay , but I'm do not have access to the codes now , out of town , perhaps few hours from now I will post the xml here . is the war file problem in my 2nd post also had the same problem ?

              jaikiran , I begin to suspect the class loading and libraries as the probable culprits after reading your my wiki blog posts . I dont know...

              -Another question , the JBoss5 GA web console in default mode keep asking me for missing plugin in firefox 3 linux , what is the required plugin? on Centos5.2+jdk5_017+ant1_7 .

              • 4. Re: both deployment methods fail - WAR and exploded in J5GA
                peterj

                The missing plugin is the Java plugin that support runnign applets. To install, see http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html.

                You did not say if you were running 64-bit or 32-bit Centos. If 32-bit, you are OK. If 64-bit, you will have to uninstall Firefox (assuming you installed the packaged version that came with Centos) and install Firefox from its download site before installing the plugin. The plugin works only with 32-bit browsers (the Firefox download site has only 32-bit browsers, while 64-bit Linux distros usually ship 64-bit browsers).

                • 5. Re: both deployment methods fail - WAR and exploded in J5GA
                  peterj

                  Oops, I gave the link for JDK6, here is the one for JDK5:

                  http://java.sun.com/j2se/1.5.0/manual_install_linux.html

                  • 6. Re: both deployment methods fail - WAR and exploded in J5GA
                    mattzyzy

                    Hi PeterJ ,
                    Thanks for the helpful reply.
                    however, do you mean , both howtos links you gave wont work even for 64-bit JDK/JRE ? currently I'm on 32bit , but few months from now I want to seriously migrate to 64-bit-x86-64 machine with 64-bit Linux OS.
                    Regards,
                    MattZyzy

                    • 7. Re: both deployment methods fail - WAR and exploded in J5GA
                      mattzyzy

                      to jaikiran ,
                      here is the web.xml codes , a bit long - FYI , the WAR file (and web.xml file) works fine in tomcat6+jdk6 and packaged using eclipse ,Export > J2EE WAR file



                      <?xml version="1.0" encoding="UTF-8"?>
                      
                      <web-app version="2.4"
                      
                       xmlns="http://java.sun.com/xml/ns/j2ee http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"
                      
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                      
                       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
                      
                       http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
                      
                      
                       <display-name>Application Zulu</display-name>
                      
                       <description>Application Zulu (AppZ)</description>
                      
                      
                      
                       <!--
                      
                       - Key of the system property that should specify the root directory of this
                      
                       - web app. Applied by WebAppRootListener or Log4jConfigListener.
                      
                       -->
                      
                       <context-param>
                      
                       <param-name>webAppRootKey</param-name>
                      
                       <param-value>appzApp.root</param-value>
                      
                       </context-param>
                      
                      
                      
                       <!--
                      
                       - Location of the XML file that defines the root application context
                      
                       - Applied by ContextLoaderListener.
                      
                       -->
                      
                       <context-param>
                      
                       <param-name>contextConfigLocation</param-name>
                      
                       <param-value>
                      
                       /WEB-INF/applicationContext*.xml
                      
                       </param-value>
                      
                       </context-param>
                      
                       <!--
                      
                       - Location of the Log4J config file, for initialization and refresh checks.
                      
                       - Applied by Log4jConfigListener.
                      
                       -->
                      
                       <context-param>
                      
                       <param-name>log4jConfigLocation</param-name>
                      
                       <param-value>/WEB-INF/log4j.properties</param-value>
                      
                       </context-param>
                       <listener>
                      
                       <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
                      
                       </listener>
                      
                      
                      
                       <listener>
                      
                       <listener-class>org.springframework.web.util.WebAppRootListener</listener-class>
                      
                       </listener>
                      
                      
                      
                       <filter>
                      
                       <filter-name>Acegi Filter Chain Proxy</filter-name>
                      
                       <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
                      
                       <init-param>
                      
                       <param-name>targetClass</param-name>
                      
                       <param-value>org.acegisecurity.util.FilterChainProxy</param-value>
                      
                       </init-param>
                      
                       </filter>
                      
                      
                      
                       <filter-mapping>
                      
                       <filter-name>Acegi Filter Chain Proxy</filter-name>
                      
                       <url-pattern>/*</url-pattern>
                      
                       </filter-mapping>
                      
                      
                      
                       <filter>
                      
                       <filter-name>ResponseOverrideFilter</filter-name>
                      
                       <filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
                      
                       </filter>
                      
                      
                      
                       <filter-mapping>
                      
                       <filter-name>ResponseOverrideFilter</filter-name>
                      
                       <url-pattern>*.page</url-pattern>
                      
                       </filter-mapping>
                      
                       <filter-mapping>
                      
                       <filter-name>ResponseOverrideFilter</filter-name>
                      
                       <url-pattern>*.form</url-pattern>
                      
                       </filter-mapping>
                      
                       <filter-mapping>
                      
                       <filter-name>ResponseOverrideFilter</filter-name>
                      
                       <url-pattern>*.process</url-pattern>
                      
                       </filter-mapping>
                      
                       <!--
                      
                       - Loads the root application context of this web app at startup.
                      
                       - The application context is then available via
                      
                       - WebApplicationContextUtils.getWebApplicationContext(servletContext).
                      
                       -->
                      
                       <listener>
                      
                       <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
                      
                       </listener>
                      
                      
                      
                       <listener>
                      
                       <listener-class>org.acegisecurity.ui.session.HttpSessionEventPublisher</listener-class>
                      
                       </listener>
                      
                       <welcome-file-list>
                      
                       <welcome-file>index.jsp</welcome-file>
                      
                       </welcome-file-list>
                      
                       <session-config>
                      
                       <session-timeout>30</session-timeout>
                      
                       </session-config>
                      
                       <taglib>
                      
                       <taglib-uri>/spring</taglib-uri>
                      
                       <taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
                      
                       </taglib>
                      
                      
                      
                       <taglib>
                      
                       <taglib-uri>http://www.springframework.org/tags/form</taglib-uri>
                      
                       <taglib-location>/WEB-INF/tld/spring-form.tld</taglib-location>
                      
                       </taglib>
                      
                      
                      
                       <taglib>
                      
                       <taglib-uri>http://acegisecurity.org/authz</taglib-uri>
                      
                       <taglib-location>/WEB-INF/tld/authz.tld</taglib-location>
                      
                       </taglib>
                      
                      
                      
                       <taglib>
                      
                       <taglib-uri>http://displaytag.sf.net/el</taglib-uri>
                      
                       <taglib-location>/WEB-INF/tld/displaytag-el.tld</taglib-location>
                      
                       </taglib>
                      
                      
                      
                       <taglib>
                      
                       <taglib-uri>http://jakarta.apache.org/taglibs/datetime-1.0</taglib-uri>
                      
                       <taglib-location>/WEB-INF/tld/taglibs-datetime.tld</taglib-location>
                      
                       </taglib>
                      
                      
                      
                       <taglib>
                      
                       <taglib-uri>http://www.servletsuite.com/servlets/wraptag</taglib-uri>
                      
                       <taglib-location>/WEB-INF/tld/wraptag.tld</taglib-location>
                      
                       </taglib>
                      
                      
                      
                       <taglib>
                      
                       <taglib-uri>http://www.servletsuite.com/servlets/hiddenpaneltag</taglib-uri>
                      
                       <taglib-location>/WEB-INF/tld/hiddenpaneltag.tld</taglib-location>
                      
                       </taglib>
                      
                      
                      
                       <taglib>
                      
                       <taglib-uri>http://www.servletsuite.com/servlets/scrolltag</taglib-uri>
                      
                       <taglib-location>/WEB-INF/tld/scrolltag.tld</taglib-location>
                      
                       </taglib>
                      
                      
                      
                       <taglib>
                      
                       <taglib-uri>http://jakarta.apache.org/taglibs/string-1.1</taglib-uri>
                      
                       <taglib-location>/WEB-INF/tld/taglibs-string.tld</taglib-location>
                      
                       </taglib>
                      
                      
                      
                       <taglib>
                      
                       <taglib-uri>http://www.servletsuite.com/servlets/numtag</taglib-uri>
                      
                       <taglib-location>/WEB-INF/tld/taglibs-number.tld</taglib-location>
                      
                       </taglib>
                      
                      
                      
                       <servlet>
                      
                       <servlet-name>appz</servlet-name>
                      
                       <servlet-class>
                      
                       org.springframework.web.servlet.DispatcherServlet
                      
                       </servlet-class>
                      
                       <load-on-startup>2</load-on-startup>
                      
                       </servlet>
                      
                      
                      
                       <servlet>
                      
                       <servlet-name>dwr-invoker</servlet-name>
                      
                       <display-name>DWR Servlet</display-name>
                      
                       <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
                      
                       <init-param>
                      
                       <param-name>debug</param-name>
                      
                       <param-value>true</param-value>
                      
                       </init-param>
                      
                       </servlet>
                      
                      
                      
                       <servlet-mapping>
                      
                       <servlet-name>dwr-invoker</servlet-name>
                      
                       <url-pattern>/dwr/*</url-pattern>
                      
                       </servlet-mapping>
                      
                      
                      
                       <servlet-mapping>
                      
                       <servlet-name>appz</servlet-name>
                      
                       <url-pattern>*.page</url-pattern>
                      
                       </servlet-mapping>
                      
                       <servlet-mapping>
                      
                       <servlet-name>appz</servlet-name>
                      
                       <url-pattern>*.info</url-pattern>
                      
                       </servlet-mapping>
                      
                       <servlet-mapping>
                      
                       <servlet-name>appz</servlet-name>
                      
                       <url-pattern>*.htm</url-pattern>
                      
                       </servlet-mapping>
                      
                       <servlet-mapping>
                      
                       <servlet-name>appz</servlet-name>
                      
                       <url-pattern>*.html</url-pattern>
                      
                       </servlet-mapping>
                      
                      </web-app>


                      • 8. Re: both deployment methods fail - WAR and exploded in J5GA
                        jaikiran

                        This one is incorrect:

                        <web-app version="2.4"
                         xmlns="http://java.sun.com/xml/ns/j2ee http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"
                         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
                         http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">



                        Try this instead

                        <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
                         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
                        http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">





                        • 9. Re: both deployment methods fail - WAR and exploded in J5GA
                          mattzyzy

                          Thanks for the quick response.
                          tried that , but still fails to deploy . and then , the computer freeze, forcing me to reboot , thus no server console log to look for . Afterwards , prior to starting the server script , I deleted the problematic appz.war directory in the deploy, then the server failed to start and crashed (default mode) , with many exceptions in the server console .

                          FYI, the war file contains all the needed libraries in WEB-INF/lib especially spring and hibernate . but where is the Spring2 and Hibernate3 deployer located by default in jboss? as i search for file name containing spring word in jboss-installation-directory nothing found, then searching after copying war directory to default/deploy only returned the spring jar files inside the appz.war/WEB-INF/lib only....




                          • 10. Re: both deployment methods fail - WAR and exploded in J5GA
                            peterj

                             

                            however, do you mean , both howtos links you gave wont work even for 64-bit JDK/JRE


                            That is correct. Only the 32-bit Java plugin can be used inside a browser, thus you need a 32-bit browser. Such a browser will run fine, even on a 64-bit OS (I am running a 64-bit OS and use a 32-bit browser to use the Java plugin).

                            See the note at the JDK download page: https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u11-oth-JPR@CDS-CDS_Developer

                            • 11. Re: both deployment methods fail - WAR and exploded in J5GA
                              mattzyzy

                              hi jaikiran,
                              for sanity check , I start the server and now it successfully running. but still the deployment failed , explode type . prior to the latest deployment , I fix a taglib uri into this , I took the url from the referenced tld file .

                              <taglib><taglib-uri>http://www.springframework.org/tags</taglib-uri>
                              <taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
                              </taglib>
                              

                              now the unforgiven error log status from the console ...

                              11:03:58,078 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714)] Started in 1m:39s:804ms
                              11:08:43,905 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/home/usercentos/jboss-5.0.0.GA/server/default/deploy/appz.war/ state=Not Installed mode=Manual requiredState=Parse
                              org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/home/usercentos/jboss-5.0.0.GA/server/default/deploy/appz.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.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:595)
                              Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'. One of '{"http://java.sun.com/xml/ns/j2ee":description, "http://java.sun.com/xml/ns/j2ee":display-name, "http://java.sun.com/xml/ns/j2ee":icon, "http://java.sun.com/xml/ns/j2ee":distributable, "http://java.sun.com/xml/ns/j2ee":context-param, "http://java.sun.com/xml/ns/j2ee":filter, "http://java.sun.com/xml/ns/j2ee":filter-mapping, "http://java.sun.com/xml/ns/j2ee":listener, "http://java.sun.com/xml/ns/j2ee":servlet, "http://java.sun.com/xml/ns/j2ee":servlet-mapping, "http://java.sun.com/xml/ns/j2ee":session-config, "http://java.sun.com/xml/ns/j2ee":mime-mapping, "http://java.sun.com/xml/ns/j2ee":welcome-file-list, "http://java.sun.com/xml/ns/j2ee":error-page, "http://java.sun.com/xml/ns/j2ee":jsp-config, "http://java.sun.com/xml/ns/j2ee":security-constraint, "http://java.sun.com/xml/ns/j2ee":login-config, "http://java.sun.com/xml/ns/j2ee":security-role, "http://java.sun.com/xml/ns/j2ee":env-entry, "http://java.sun.com/xml/ns/j2ee":ejb-ref, "http://java.sun.com/xml/ns/j2ee":ejb-local-ref, "http://java.sun.com/xml/ns/j2ee":service-ref, "http://java.sun.com/xml/ns/j2ee":resource-ref, "http://java.sun.com/xml/ns/j2ee":resource-env-ref, "http://java.sun.com/xml/ns/j2ee":message-destination-ref, "http://java.sun.com/xml/ns/j2ee":message-destination, "http://java.sun.com/xml/ns/j2ee":locale-encoding-mapping-list}' is expected. @ vfsfile:/home/usercentos/jboss-5.0.0.GA/server/default/deploy/appz.war/WEB-INF/web.xml[106,10]
                              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)
                              ... 27 more
                              Caused by: org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'. One of '{"http://java.sun.com/xml/ns/j2ee":description, "http://java.sun.com/xml/ns/j2ee":display-name, "http://java.sun.com/xml/ns/j2ee":icon, "http://java.sun.com/xml/ns/j2ee":distributable, "http://java.sun.com/xml/ns/j2ee":context-param, "http://java.sun.com/xml/ns/j2ee":filter, "http://java.sun.com/xml/ns/j2ee":filter-mapping, "http://java.sun.com/xml/ns/j2ee":listener, "http://java.sun.com/xml/ns/j2ee":servlet, "http://java.sun.com/xml/ns/j2ee":servlet-mapping, "http://java.sun.com/xml/ns/j2ee":session-config, "http://java.sun.com/xml/ns/j2ee":mime-mapping, "http://java.sun.com/xml/ns/j2ee":welcome-file-list, "http://java.sun.com/xml/ns/j2ee":error-page, "http://java.sun.com/xml/ns/j2ee":jsp-config, "http://java.sun.com/xml/ns/j2ee":security-constraint, "http://java.sun.com/xml/ns/j2ee":login-config, "http://java.sun.com/xml/ns/j2ee":security-role, "http://java.sun.com/xml/ns/j2ee":env-entry, "http://java.sun.com/xml/ns/j2ee":ejb-ref, "http://java.sun.com/xml/ns/j2ee":ejb-local-ref, "http://java.sun.com/xml/ns/j2ee":service-ref, "http://java.sun.com/xml/ns/j2ee":resource-ref, "http://java.sun.com/xml/ns/j2ee":resource-env-ref, "http://java.sun.com/xml/ns/j2ee":message-destination-ref, "http://java.sun.com/xml/ns/j2ee":message-destination, "http://java.sun.com/xml/ns/j2ee":locale-encoding-mapping-list}' is expected. @ vfsfile:/home/usercentos/jboss-5.0.0.GA/server/default/deploy/appz.war/WEB-INF/web.xml[106,10]
                              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:426)
                              at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
                              at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
                              at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
                              at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
                              at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
                              at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
                              at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(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.XMLNSDocumentScannerImpl.scanStartElement(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)
                              ... 35 more
                              11:08:43,908 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

                              vfsfile:/home/usercentos/jboss-5.0.0.GA/server/default/deploy/appz.war/ -> org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'. One of '{"http://java.sun.com/xml/ns/j2ee":description, "http://java.sun.com/xml/ns/j2ee":display-name, "http://java.sun.com/xml/ns/j2ee":icon, "http://java.sun.com/xml/ns/j2ee":distributable, "http://java.sun.com/xml/ns/j2ee":context-param, "http://java.sun.com/xml/ns/j2ee":filter, "http://java.sun.com/xml/ns/j2ee":filter-mapping, "http://java.sun.com/xml/ns/j2ee":listener, "http://java.sun.com/xml/ns/j2ee":servlet, "http://java.sun.com/xml/ns/j2ee":servlet-mapping, "http://java.sun.com/xml/ns/j2ee":session-config, "http://java.sun.com/xml/ns/j2ee":mime-mapping, "http://java.sun.com/xml/ns/j2ee":welcome-file-list, "http://java.sun.com/xml/ns/j2ee":error-page, "http://java.sun.com/xml/ns/j2ee":jsp-config, "http://java.sun.com/xml/ns/j2ee":security-constraint, "http://java.sun.com/xml/ns/j2ee":login-config, "http://java.sun.com/xml/ns/j2ee":security-role, "http://java.sun.com/xml/ns/j2ee":env-entry, "http://java.sun.com/xml/ns/j2ee":ejb-ref, "http://java.sun.com/xml/ns/j2ee":ejb-local-ref, "http://java.sun.com/xml/ns/j2ee":service-ref, "http://java.sun.com/xml/ns/j2ee":resource-ref, "http://java.sun.com/xml/ns/j2ee":resource-env-ref, "http://java.sun.com/xml/ns/j2ee":message-destination-ref, "http://java.sun.com/xml/ns/j2ee":message-destination, "http://java.sun.com/xml/ns/j2ee":locale-encoding-mapping-list}' is expected. @ vfsfile:/home/usercentos/jboss-5.0.0.GA/server/default/deploy/appz.war/WEB-INF/web.xml[106,10]
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
                              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:665)
                              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293)
                              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:595)


                              • 12. Re: both deployment methods fail - WAR and exploded in J5GA
                                wolfgangknauf

                                Hi,

                                the "taglib" elements must be encapsulated in "jsp-config":

                                <jsp-config>
                                 <taglib>
                                 <taglib-uri>http://www.springframework.org/tags</taglib-uri>
                                 <taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
                                 </taglib>
                                </jsp-config>


                                I advice you to use an editor with xml validation for building web.xml, it will safe you a lot of trial and error. I suggest e.g. Eclipse + WebToolsPlatform.

                                Wolfgang

                                • 13. Re: both deployment methods fail - WAR and exploded in J5GA
                                  mattzyzy

                                  Firstly thanks to Wolfgang . that helps to remove the element 'taglib' error .

                                  "PeterJ" wrote:
                                  however, do you mean , both howtos links you gave wont work even for 64-bit JDK/JRE


                                  That is correct. Only the 32-bit Java plugin can be used inside a browser, thus you need a 32-bit browser. Such a browser will run fine, even on a 64-bit OS (I am running a 64-bit OS and use a 32-bit browser to use the Java plugin).

                                  See the note at the JDK download page: https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u11-oth-JPR@CDS-CDS_Developer



                                  to PeterJ ,
                                  Now it is available the 64bit Java Plugin through Java SE 6 Update 12 in 64bit OSes , although I'm not quite sure whether it supports either AMD64 or Intel64 , or both . the link is https://jdk6.dev.java.net/6uNea.html . Before I delve into it , maybe I should ask first for its compatibility with JBoss5GA AND jBoss Web 2.1.1GA especially in Linux .

                                  • 14. Re: both deployment methods fail - WAR and exploded in J5GA
                                    peterj

                                    Regarding the 64-bit plugin: You mean you haven't downloaded it yet, tried it, and reported back on if it works? Why not?

                                    1 2 Previous Next