se a URL � maldita pra vc acho q vc tah com problemas... ;)
agora a URL de verdade � composta do servidor/<context-root>, ex.(do seu caso):
http://localhost:8080/agenda/web
eu acho(n�o tenho certeza), que o m�dulo web precisa ser um pacote '.war'...
por favor, corrijam-me se estiver errado.
Diogo Catossi
Nilseu Padilha wrote:
Estou usando o jboss-3.0.3_tomcat-4.1.12 juntamente com o XDoclet para gerar os deployment descriptor.
Gerei os seguintes arquivos:
web.xml
-----------------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!--
To use non XDoclet filters, create a filters.xml file that
contains the additional filters (eg Sitemesh) and place it in your
projects merge dir. Don't include filter-mappings in this file,
include them in a file called filter-mappings.xml and put that in
the same directory.
-->
<!--
To use non XDoclet servlets, create a servlets.xml file that
contains the additional servlets (eg Struts) and place it in your
projects merge dir. Don't include servlet-mappings in this file,
include them in a file called servlet-mappings.xml and put that in
the same directory.
-->
<servlet>
<servlet-name>UsuarioController</servlet-name>
<display-name>UsuarioControler</display-name>
<servlet-class>AgendaPresentation.cadastrarusuarios.UsuarioControllerServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>UsuarioController</servlet-name>
<url-pattern>/UsuarioController</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>0</session-timeout>
</session-config>
<!--
To specify mime mappings, create a file named mime-mappings.xml, put it in your project's mergedir.
Organize mime-mappings.xml following this DTD slice:
<!ELEMENT mime-mapping (extension, mime-type)>
-->
<!--
To specify error pages, create a file named error-pages.xml, put it in your project's mergedir.
Organize error-pages.xml following this DTD slice:
<!ELEMENT error-page ((error-code | exception-type), location)>
-->
<!--
To add taglibs by xml, create a file called taglibs.xml and place it
in your merge dir.
-->
<taglib>
<taglib-uri>http://java.sun.com/jstl/ea/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
<!--
To set up security settings for your web app, create a file named web-security.xml, put it in your project's mergedir.
Organize web-security.xml following this DTD slice:
<!ELEMENT security-constraint (display-name?, web-resource-collection+, auth-constraint?, user-data-
constraint?)>
<!ELEMENT web-resource-collection (web-resource-name, description?, url-pattern*, http-method*)>
<!ELEMENT web-resource-name (#PCDATA)>
<!ELEMENT url-pattern (#PCDATA)>
<!ELEMENT http-method (#PCDATA)>
<!ELEMENT user-data-constraint (description?, transport-guarantee)>
<!ELEMENT transport-guarantee (#PCDATA)>
<!ELEMENT login-config (auth-method?, realm-name?, form-login-config?)>
<!ELEMENT auth-method (#PCDATA)>
<!ELEMENT realm-name (#PCDATA)>
<!ELEMENT form-login-config (form-login-page, form-error-page)>
<!ELEMENT form-login-page (#PCDATA)>
<!ELEMENT form-error-page (#PCDATA)>
-->
</web-app>
-----------------------------------------------------------------------------------------------------------------------------------------------
application.xml
-----------------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
<application>
<display-name> Agendamentos </display-name>
<module>
<ejb>agenda.jar</ejb>
</module>
<module>
<web>
<web-uri>agenda.jar</web-uri>
<context-root>/agenda/web</context-root>
</web>
</module>
</application>
Fiz um deploy da aplicacao agenda utilizando webdoclets no diretorio deploy do Jboss e o log do console asssinalou o deployment correto do arquivo agenda.ear. A minha questao eh digna de "dummies":
Com que maldita URL eu acesso acesso o servlet?
Alias se alguem souber como gerar o arquivo application.xml do pacote EAR automaticamente com o Xdoclet, favor nao se acanhe em responder.
Valeu,
<Padilha id="Nilseu">
Nilseu Perside Ortiz Padilha Junior
Estudante de Ciencia da Computacao - ULBRA
Desenvolvedor Java
<Quote>
Rejeitamos reis, presidentes e votos. Acreditamos em puro consenso e codigo eficiente. - Dave Clark
</Quote>
</Padilha>
-- Diogo C. Catossi Infra-Estrutura de Sistemas Medisoft Ltda. Curitiba - PR - Brasil (41) 229-4247
--------------------------------------------------------------------- Para cancelar a subscri��o, envie mensagem para: [EMAIL PROTECTED] Para comandos adicionais, envie mensagem para: [EMAIL PROTECTED]
