0 Replies Latest reply on Oct 24, 2002 8:05 AM by shaun

    Alter Servlet dir and JNDI name is wrong.

      My application was running OK until I noticed my servlets were not in the /WEB-INF/classes directory (as in the servlet 2.2 spec).
      I altered my build.xml file to put them in the correct place but at deployment I now get:

      2002-10-24 11:45:37,593 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@27cda0de{ url=file:/C:/jboss-3.0.3_tomcat-4.0.5/server/default/deploy/web-client.war, deployedLastModified=1035456002171 }
      org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-ref: Lesson, no ejb-link match, use jndi-name in jboss-web.xml)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:309)
      ...

      I use the same jboss-web.xml as before so why should it the JNDI name now be wrong?