2 Replies Latest reply on Mar 25, 2003 8:33 AM by Denise Oliveira

    Help deploying ear file!

    Denise Oliveira Newbie

      Group,

      I'm having a problem deploying my ear file. I’m using JBoss 3.0.6 running in windows environment. All the ejb jar's files were deployed correctly, but when JBoss was deploying my war file it had a problem. For me it seems to be at the web.xml file, but I think it is correct. I'm sending my web.xml and application.xml at the end of the message.


      The structure of the files I'd created was:

      1. query.ear
      1.1. bancodadosejb.jar (EJB)
      1.2. comandosqlejb.jar (EJB)
      1.3. loginejb.jar (EJB)
      1.4. projetoejb.jar (EJB)
      1.5. query.war
      1.6. application.xml


      2. query.war
      1.1. All the jsp files
      1.2. All the classes compiled
      1.3. web.xml

      Notice that I haven't put the web-service.xml into 2 because I do not access an EJB directly from a Servlet. Is it correct?


      Then I noticed the following error at boot.log. Is it possible to be creating the above error? Or is it another problem?

      Below comes the server.log and boot.log part with the error...


      I would appreciate some help.

      Thank you in advanced.

      Denise.

      ++++++++++++++

      server.log:

      2003-03-24 14:40:23,059 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:11 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.
      2003-03-24 14:40:23,074 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:16 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.
      2003-03-24 14:40:23,074 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:21 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.
      2003-03-24 14:40:23,090 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:26 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.
      2003-03-24 14:40:23,090 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:31 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.
      2003-03-24 14:40:23,106 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:36 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.
      2003-03-24 14:40:23,106 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:41 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.
      2003-03-24 14:40:23,121 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:46 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.
      2003-03-24 14:40:23,137 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:51 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.
      2003-03-24 14:40:23,137 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:59 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet-mapping" here.
      2003-03-24 14:40:23,153 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:64 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet-mapping" here.
      2003-03-24 14:40:23,153 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:69 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet-mapping" here.
      2003-03-24 14:40:23,168 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:74 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet-mapping" here.
      2003-03-24 14:40:23,168 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:79 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet-mapping" here.
      2003-03-24 14:40:23,184 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:84 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet-mapping" here.
      2003-03-24 14:40:23,184 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:89 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet-mapping" here.
      2003-03-24 14:40:23,199 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:94 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet-mapping" here.
      2003-03-24 14:40:23,215 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:99 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet-mapping" here.
      2003-03-24 14:40:23,215 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Denise Oliveira/Configurações locais/Temp/Jetty_0_0_0_0_8080__/webapp/WEB-INF/web.xml line:104 col:-1 : org.xml.sax.SAXParseException: Element "web-app" does not allow "session-config" here.
      2003-03-24 14:40:23,231 INFO [org.jboss.jbossweb] Stopped WebApplicationContext[/,jar:file:/C:/jboss-3.0.6/server/default/tmp/deploy/server/default/deploy/query.ear/25.query.ear-contents/query.war!/]
      2003-03-24 14:40:23,231 INFO [org.jboss.jbossweb] Deregister jboss.web:Jetty=0,JBossWebApplicationContext=2,context=/
      2003-03-24 14:40:23,231 INFO [org.jboss.jbossweb] Successfully undeployed file:/C:/jboss-3.0.6/server/default/tmp/deploy/server/default/deploy/query.ear/25.query.ear-contents/query.war
      2003-03-24 14:40:23,246 ERROR [org.jboss.deployment.MainDeployer] could not start deployment: file:/C:/jboss-3.0.6/server/default/tmp/deploy/server/default/deploy/query.ear/25.query.ear-contents/query.war
      org.jboss.deployment.DeploymentException: Element "web-app" does not allow "servlet" here.; - nested throwable: (org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.)
      at org.jboss.jetty.Jetty.deploy(Jetty.java:390)
      at org.jboss.jetty.JettyService.performDeploy(JettyService.java:249)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:413)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy2.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:230)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:484)
      + nested throwable:




      ++++++++++++++++++++

      boot.log:

      14:40:10,590 DEBUG [SystemPropertyClassValue] Error loading class org.jboss.system.JBossRMIClassLoader property java.rmi.server.RMIClassLoaderSpi not set.
      java.lang.NoClassDefFoundError: java/rmi/server/RMIClassLoaderSpi
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
      at org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoader.java:224)
      at org.jboss.mx.loading.UnifiedLoaderRepository3.loadClassFromClassLoader(UnifiedLoaderRepository3.java:214)
      at org.jboss.mx.loading.LoadMgr.beginLoadTask(LoadMgr.java:129)
      at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:161)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
      at org.jboss.util.property.jmx.SystemPropertyClassValue.setSystemPropertyClassValue(SystemPropertyClassValue.java:118)
      at org.jboss.util.property.jmx.SystemPropertyClassValue.create(SystemPropertyClassValue.java:94)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
      at $Proxy0.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:328)
      at org.jboss.system.ServiceController.create(ServiceController.java:253)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy2.create(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:197)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:766)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:626)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:484)


      ++++++++++++++++++++


      web.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">


      <web-app>

      <welcome-file-list>
      <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>


      <servlet-name>frontservlet</servlet-name>
      <servlet-class>br.com.cetip.web.FrontServlet</servlet-class>



      <servlet-name>loginservlet</servlet-name>
      <servlet-class>br.com.cetip.login.servlet.LoginServlet</servlet-class>



      <servlet-name>inserequeryiniservlet</servlet-name>
      <servlet-class>br.com.cetip.comandosql.servlet.inclusao.InsereQueryIni</servlet-class>



      <servlet-name>inserequerymidservlet</servlet-name>
      <servlet-class>br.com.cetip.comandosql.servlet.inclusao.InsereQueryMid</servlet-class>



      <servlet-name>inserequeryfimservlet</servlet-name>
      <servlet-class>br.com.cetip.comandosql.servlet.inclusao.InsereQueryFim</servlet-class>



      <servlet-name>execqueryiniservlet</servlet-name>
      <servlet-class>br.com.cetip.comandosql.servlet.execucao.ExecuteQueryIni</servlet-class>



      <servlet-name>execqueryini2servlet</servlet-name>
      <servlet-class>br.com.cetip.comandosql.servlet.execucao.ExecuteQueryIni2</servlet-class>



      <servlet-name>excluiqueryiniservlet</servlet-name>
      <servlet-class>br.com.cetip.comandosql.servlet.exclusao.ExcluiQueryIni</servlet-class>



      <servlet-name>excluiqueryfimservlet</servlet-name>
      <servlet-class>br.com.cetip.comandosql.servlet.exclusao.ExcluiQueryFim</servlet-class>





      <servlet-mapping>
      <servlet-name>frontservlet</servlet-name>
      <url-pattern>/servlet/frontservlet</url-pattern>
      </servlet-mapping>

      <servlet-mapping>
      <servlet-name>loginservlet</servlet-name>
      <url-pattern>/servlet/loginservlet</url-pattern>
      </servlet-mapping>

      <servlet-mapping>
      <servlet-name>inserequeryiniservlet</servlet-name>
      <url-pattern>/servlet/inserequeryiniservlet</url-pattern>
      </servlet-mapping>

      <servlet-mapping>
      <servlet-name>inserequerymidservlet</servlet-name>
      <url-pattern>/servlet/inserequerymidservlet</url-pattern>
      </servlet-mapping>

      <servlet-mapping>
      <servlet-name>inserequeryfimservlet</servlet-name>
      <url-pattern>/servlet/inserequeryfimservlet</url-pattern>
      </servlet-mapping>

      <servlet-mapping>
      <servlet-name>execqueryiniservlet</servlet-name>
      <url-pattern>/servlet/execqueryiniservlet</url-pattern>
      </servlet-mapping>

      <servlet-mapping>
      <servlet-name>execqueryini2servlet</servlet-name>
      <url-pattern>/servlet/execqueryini2servlet</url-pattern>
      </servlet-mapping>

      <servlet-mapping>
      <servlet-name>excluiqueryiniservlet</servlet-name>
      <url-pattern>/servlet/excluiqueryiniservlet</url-pattern>
      </servlet-mapping>

      <servlet-mapping>
      <servlet-name>excluiqueryfimservlet</servlet-name>
      <url-pattern>/servlet/excluiqueryfimservlet</url-pattern>
      </servlet-mapping>

      <session-config>
      <session-timeout>180</session-timeout>
      </session-config>

      </web-app>

      +++++++++++++++++++++++++++++

      application.xml:

      <?xml version="1.0" encoding="ISO-8859-1"?>



      <display-name>Queries On-Line</display-name>


      <web-uri>query.war</web-uri>
      <context-root>/</context-root>




      comandosqlejb.jar



      bancodadosejb.jar



      projetoejb.jar



      loginejb.jar