-
1. Re: Strange problem when deploy the servlet in jboss
kabirkhan Apr 20, 2004 12:28 PM (in response to calffin)Post the relevant bits of your jboss.xml, jboss-web.xml and web.xml files
-
2. Re: Strange problem when deploy the servlet in jboss
calffin Apr 20, 2004 9:37 PM (in response to calffin)Thank you ,kabkhan. My jboss.xml is below:
<ejb-name>Account</ejb-name>
<jndi-name>AccountBean</jndi-name>
<local-jndi-name>AccountLocal</local-jndi-name>
<ejb-name>AccountFacade</ejb-name>
<jndi-name>AccountFacadeBean</jndi-name>
<local-jndi-name>AccountFacadeLocal</local-jndi-name>
<ejb-local-ref>
<ejb-ref-name>ejb/AccountLocal</ejb-ref-name>
<jndi-name>AccountLocal</jndi-name>
</ejb-local-ref>
</enterprise-beans>
My web.xml is below:
<servlet-name>accountlet</servlet-name>
<servlet-class>server.web.Accountlet</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-mapping>
<servlet-name>accountlet</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>404</error-code>
/error.jsp
</error-page>
<ejb-ref>
<ejb-ref-name>ejb/AccountFacade</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
server.ejb.accountapplication.AccountFacadeHome
server.ejb.accountapplication.AccountFacade
</ejb-ref>
My jboss-web.xml is below:
<jboss-web>
<ejb-ref>
<ejb-ref-name>ejb/AccountFacade</ejb-ref-name>
<jndi-name>AccountFacadeBean</jndi-name>
</ejb-local-ref>
</jboss-web>