Skip to Content
0
Former Member
Oct 21, 2009 at 12:18 PM

ejb3 injection in httpservlet nw ce7.1

11 Views

public class DownloadServlet extends HttpServlet {

	private static final long			serialVersionUID	= 2441873036910730507L;

	@EJB
	RDokumentService dokumentSvc;

	<servlet>
		<servlet-name>Download Servlet</servlet-name>
		<servlet-class>com.hp.sk.szc.servlet.DownloadServlet</servlet-class>
		<load-on-startup>2</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>Download Servlet</servlet-name>
		<url-pattern>/preview/*</url-pattern>
	</servlet-mapping>

Warning occurred on server 103571050 during deploy JavaEE/ear : Web Model Builder: ejb-ref element with name "com.hp.sk.szc.servlet.DownloadServlet/dokumentSvc" overrides annotation on com.hp.sk.szc.servlet.DownloadServlet.dokumentSvc., file: web-1.0.war#WEB-INF/web.xml, column 0, line 0, severity: warning'.

injection and servlet doesnt work at all, facesservlet is working okay even with injections, any idea guys?