Descobri o problema, obrigado,
 
Renato.
----- Original Message -----
Sent: Thursday, November 21, 2002 2:14 PM
Subject: [enterprise-list] j2sdkee1.3.1 - Erro ao tentar executar exemplo tutorial

Ol�,
 
estou seguindo o tutorial da Sun e criei o ConverterWAR, ConverJar e
ConverterClient, gerei o deploy com  sucesso mas qdo fiz um verify  do arquivo ear,
exibiu o seguinte erro no arquivo results...txt:
 
 
 
 ---------------------------
        STATIC VERIFICATION RESULTS
 ---------------------------
 
 
 ----------------------------------
 NUMBER OF FAILURES/WARNINGS/ERRORS
 ----------------------------------
 
 # of Failures : 1
        # of Warnings : 0
 # of Errors : 0
 
 -----------------------------
 RESULTS FOR WEB-RELATED TESTS
 -----------------------------
 
       
 
 --------------
 FAILED TESTS :
 --------------
 
 
  Test Name : tests.web.elements.WebEjbReferencesElement
  Test Assertion : Web archive references to other beans homes test
  Test Description : Error: Class [ ConverterHome ] not found in WEB-INF/classes or WEB-INF/lib.
For [ /ConverterWAR ]
Error: class [ ConverterHome ] cannot be found within this jar [ ConverterWAR ].
Error: Class [ Converter ] not found in WEB-INF/classes or WEB-INF/lib.
For [ /ConverterWAR ]
Error: class [ Converter ] cannot be found within this jar [ ConverterWAR ].
 
 
e no console:
About to ValidateParse META-INF/application.xml file.
ConverterApp: There were no failed tests.
About to ValidateParse META-INF/ejb-jar.xml file.
ConverterJAR: There were no failed tests.
About to ValidateParse WEB-INF/web.xml file.
ConverterWAR: Some tests failed.
About to ValidateParse META-INF/application-client.xml file.
ConverterClient: There were no failed tests.
 
Aparentemente, o erro parece ser em alguma coisa no web.xml, mas
n�o descobri o que. Quais s�o os caminhos exatos que o container
vai procurar? Ele n�o faz isso somente atrav�s do q foi definido no m�todo
lookup/ jndi? Tb gostaria de algumas dicas de qual fluxo seguir para descobrir
esse tipo de erro.
 
N�o sei se isso ajuda, mas qdo executo no browser http://localhost:8000/converter/index.jsp
� exibida a p�gina jsp sem problemas mas de cara no console � exibido a seguinte mensagem:
 
Unable to lookup home: TheConverter null.
 
Browser:

Converter


Enter an amount to convert:


 
Qdo insiro algum valor e pressiono Submit, exibe o seguinte:
 

J2EE SDK/1.3.1 - HTTP Status 500 - Internal Server Error


type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.

exception

java.lang.NullPointerException
	at org.apache.jsp.index$jsp._jspService(index$jsp.java:113)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
	at org.apache.jasper.servlet
 
 
Algu�m j� passou por isso ou pode me ajudar a descobrir o problema?
 
Meu SO � Windows 2000 e o sdk � j2sdk1.4.1_01.
 
Muito obrigado,
 
Renato.

Responder a