...
<servlet>
<servlet-name>servletAccount</servlet-name>
<servlet-class>test.servlet.ServletAccount</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>servletAccount</servlet-name>
<url-pattern>/servletAccount</url-pattern>
</servlet-mapping>
...
23:35:33,869 WARN [jbossweb] WARNING: ERROR@file:/C:/Documents and Settings/Adm
inistrator/Local Settings/Temp/Jetty_0_0_0_0_8080__myes/webapp/WEB-INF/web.xml l
ine:36 col:-1 : org.xml.sax.SAXParseException: component �web-app� not allow �servle
t-mapping�。
23:35:33,879 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
.scanner.URLDeploymentScanner$DeployedURL@8f7bacd1{ url=file:/D:/jboss-3.0.4/ser
ver/default/deploy/myes.war, deployedLastModified=1044718424000 }
org.jboss.deployment.DeploymentException: component�web-app� not allow �servlet�。
; - nested throwable: (org.xml.sax.SAXParseException: component�web-app� not allow
�servlet�。
Originally posted by Sam Dalton:
when you call create() you are creating a NEW instance of your stateful bean (with default values for the fields) you need to, instead, store the reference to your Stateful bean and reuse that (the HttpSession is a good place to store such a reference)
Cheers
Sam
Originally posted by meka toka:
Hi,
You are getting the NameNotFoundException because you are trying to lookup an object(Hello) in the location (comp/env/ejb/myestest) and your ejb object is not present over there.
Where to look for ::
1. Check and make sure that you are using the same JNDI name that you binded your object with.
go through the following links
a. http://www.jboss.org/online-manual/HTML/ch01s15.html
b. http://www.jboss.org/online-manual/HTML/ch05.html
let me know if you have any more questions
Regards
Meka Toka