1 Reply Latest reply on Sep 26, 2002 4:59 AM by qjafcunuas

    No Context configured to process this request

    qjafcunuas

      Hi
      I'm using JBoss2.4.6 & Tomcat4.0.3 on Linux Debian, with j2sdk1.4.0_01

      I found a lot of topic on this forum about my problem, but noone resolved it, or i've make an error :-)

      i've created a 'myapp.war' repository on jboss deploy dir like that :
      /usr/local/ws/deploy/myapp.war/WEB-INF/classes/ (empty)
      /usr/local/ws/deploy/myapp.war/WEB-INF/web.xml
      /usr/local/ws/deploy/myapp.war/index.html

      "/usr/local/ws/deploy" is defined as one of deployement dir.

      Here is my web.xml :
      <?xml version="1.0" encoding="ISO-8859-1"?>

      <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">

      <web-app>
      <display-name>My Application</display-name>
      </web-app>


      Here is the jboss trace when i start it :
      [18:08:05,504,AutoDeployer] Auto deploy of file:/usr/local/ws/deploy/myapp.war/
      [18:08:05,505,J2eeDeployer] Deploy J2EE application: file:/usr/local/ws/deploy/myapp.war/
      [18:08:05,510,J2eeDeployer] inflate and install WEB module myapp.war/
      [18:08:05,511,ContainerFactory] Deploying:file:/usr/local/ws/deploy/myapp.war/
      [18:08:05,534,ContainerFactory] Deployed application: file:/usr/local/ws/deploy/myapp.war/
      [18:08:05,541,J2eeDeployer] Starting module myapp.war/
      [18:08:05,569,EmbeddedCatalinaServiceSX] deploy, ctxPath=/myapp.war/, warUrl=file:/usr/local/ws/deploy/myapp.war/
      [18:08:05,574,Engine] WebappLoader[/myapp.war/]: Deploying class repositories to work directory /usr/local/ws/JBoss-2.4.6_Tomcat-4.0.3/catalina/work/localhost/myapp.war_
      [18:08:05,582,Engine] StandardManager[/myapp.war/]: Seeding random number generator class java.security.SecureRandom
      [18:08:05,584,Engine] StandardManager[/myapp.war/]: Seeding of random number generator has been completed
      [18:08:08,683,Engine] ContextConfig[/myapp.war/]: Added certificates -> request attribute Valve
      [18:08:08,684,EmbeddedCatalinaServiceSX] Context.lifecycleEvent, event=org.apache.catalina.LifecycleEvent[source=StandardEngine[MainEngine].StandardHost[localhost].StandardContext[/myapp.war/]]
      [18:08:08,684,EmbeddedCatalinaServiceSX] Using Java2 parent classloader delegation: true
      [18:08:08,684,EmbeddedCatalinaServiceSX] Begin parseWebAppDescriptors
      [18:08:08,687,EmbeddedCatalinaServiceSX] TCL=java.net.FactoryURLClassLoader@c220eb
      [18:08:08,688,EmbeddedCatalinaServiceSX] Linking java:comp/UserTransaction to JNDI name: UserTransaction
      [18:08:08,688,EmbeddedCatalinaServiceSX] addEnvEntries
      [18:08:08,688,EmbeddedCatalinaServiceSX] linkResourceEnvRefs
      [18:08:08,688,EmbeddedCatalinaServiceSX] linkResourceRefs
      [18:08:08,688,EmbeddedCatalinaServiceSX] linkEjbRefs
      [18:08:08,688,EmbeddedCatalinaServiceSX] linkEjbLocalRefs
      [18:08:08,688,EmbeddedCatalinaServiceSX] linkSecurityDomain
      [18:08:08,689,EmbeddedCatalinaServiceSX] Binding security/securityMgr to NullSecurityManager
      [18:08:08,692,EmbeddedCatalinaServiceSX] End parseWebAppDescriptors
      [18:08:08,693,Engine] StandardWrapper[/myapp.war/:default]: Loading container servlet default
      [18:08:08,701,Engine] default: init
      [18:08:08,702,Engine] StandardWrapper[/myapp.war/:invoker]: Loading container servlet invoker
      [18:08:08,702,Engine] invoker: init
      [18:08:08,703,Engine] jsp: init
      [18:08:11,517,EmbeddedCatalinaServiceSX] Initialized: {WebApplication: /usr/local/ws/deploy/myapp.war/, URL: file:/usr/local/ws/deploy/myapp.war/, classLoader: java.net.FactoryURLClassLoader@c220eb:12722411}
      [18:08:11,518,J2eeDeployer] J2EE application: file:/usr/local/ws/deploy/myapp.war/ is deployed.


      when i try to access to the index.html of myapp.war (http://localhost:8080/myapp/index.html), i've got this error on the browser:
      Apache Tomcat/4.0.3 - HTTP Status 500 - No Context configured to process this request
      type Status report
      message No Context configured to process this request
      description The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request.


      Here is Jboss traces :
      [18:24:07,494,Engine] StandardHost[localhost]: MAPPING configuration error for request URI


      When i removed the myapp.war directory, i've got this error :
      [18:27:09,742,AutoDeployer] Auto undeploy of file:/usr/local/ws/deploy/myapp.war/
      [18:27:09,751,AutoDeployer] Undeployment failed
      org.jboss.deployment.J2eeDeploymentException: The application " Default" has not been deployed.
      at org.jboss.deployment.J2eeDeployer.undeploy(J2eeDeployer.java:279)
      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:324)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.AutoDeployer.undeploy(AutoDeployer.java:415)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:196)
      at java.lang.Thread.run(Thread.java:536)


      When i tried to create a new myapp.war, i've got this error :
      [18:28:43,241,AutoDeployer] Auto deploy of file:/usr/local/ws/deploy/myapp.war/
      [18:28:43,242,J2eeDeployer] Deploy J2EE application: file:/usr/local/ws/deploy/myapp.war/
      [18:28:43,243,J2eeDeployer] inflate and install WEB module myapp.war/
      [18:28:43,244,ContainerFactory] Undeploying:file:/usr/local/ws/deploy/myapp.war/
      [18:28:43,258,ContainerFactory] Undeployed application: file:/usr/local/ws/deploy/myapp.war/
      [18:28:43,259,ContainerFactory] Deploying:file:/usr/local/ws/deploy/myapp.war/
      [18:28:43,270,ContainerFactory] Deployed application: file:/usr/local/ws/deploy/myapp.war/
      [18:28:43,271,J2eeDeployer] Starting module myapp.war/
      [18:28:43,283,EmbeddedCatalinaServiceSX] deploy, ctxPath=/myapp.war/, warUrl=file:/usr/local/ws/deploy/myapp.war/
      [18:28:43,284,EmbeddedCatalinaServiceSX] Cause
      java.lang.IllegalArgumentException: addChild: Child name '/myapp.war/' is not unique
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCatalinaServiceSX.java:298)
      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedCatalinaServiceSX.java:223)
      at org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer.java:211)
      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:324)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:505)
      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
      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:324)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
      at java.lang.Thread.run(Thread.java:536)
      [18:28:43,286,J2eeDeployer] Starting myapp.war/ failed!
      [18:28:43,296,J2eeDeployer] Stopping module myapp.war/
      [18:28:43,297,Engine] StandardHost[localhost]: Removing web application at context path /myapp.war/
      [18:28:43,313,J2eeDeployer] Stopping module myapp.war/
      [18:28:43,314,ContainerFactory] Undeploying:file:/usr/local/ws/deploy/myapp.war/
      [18:28:43,325,ContainerFactory] Undeployed application: file:/usr/local/ws/deploy/myapp.war/
      [18:28:43,326,AutoDeployer] DeploymentInfo failed:file:/usr/local/ws/deploy/myapp.war/
      org.jboss.deployment.J2eeDeploymentException: Error while starting myapp.war/: Error during deploy, Cause: org.jboss.deployment.DeploymentException: Error during deploy, Cause: java.lang.IllegalArgumentException: addChild: Child name '/myapp.war/' is not unique
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:518)
      ../..


      So what is the trouble with my myapp.war ?

      tia

      Bruno

        • 1. Re: No Context configured to process this request
          qjafcunuas

          I've created this new file:
          /usr/local/ws/deploy/myapp.war/WEB-INF/jboss-web.xml
          <?xml version="1.0"?>
          <!DOCTYPE jboss-web>

          <jboss-web>
          <context-root>/myapp</context-root>
          </jboss-web>

          And now http://localhost:8080/myapp/index.html is ok.


          When i modifie my web.xml file, JBoss says that context /myapp already exists !!!



          I've created a jsp file who uses EJB that deployed on the same server.
          I've no reference of thoses EJB in myappp xml files. I just put in the myapp.war/WEB-INF/classes/ directory the home and remote interface of the EJB.
          And my jsp is ok, it finds the EJB !
          The trouble is that some EJB will be deployed on another server.
          So How can i say in my myapp application to find EJB on another server ?

          tia

          Bruno