Bug? - Internal Error: File /WEB-INF/web.xml not found (ConverterApp)
843833Apr 23 2003 — edited Aug 18 2004I get this error message in the weblog file when I try to deploy ConverterApp.ear (6425 bytes / Oct 11 2001) from the j2eetutorial j2ee-1_3-doc-tutorial-draft5.zip) on the Sun J2EE SDK/1.3.1 reference implementation:
Internal Error: File /WEB-INF/web.xml not found (ConverterApp)
The web.xml file is actually in the right place, so I wonder whether this is a bug in either the ConverterApp or the servlet container.
Get the tutorial from
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/GettingStarted2.html#69039
Get j2eetutorial/examples/ears/ConverterApp.ear from the example package:
hans@hans:~/java/tmp$ jar xf ../j2eetutorial/examples/ears/ConverterApp.ear
hans@hans:~/java/tmp$ ls -l
total 16
-rw-rw-r-- 1 hans hans 2131 Apr 23 15:33 app-client-ic.jar
-rw-rw-r-- 1 hans hans 1939 Apr 23 15:33 ejb-jar-ic.jar
drwxrwxr-x 2 hans hans 4096 Apr 23 15:33 META-INF
-rw-rw-r-- 1 hans hans 1498 Apr 23 15:33 war-ic.war
hans@hans:~/java/tmp$ jar tvf war-ic.war
652 Tue Oct 09 17:10:00 CEST 2001 WEB-INF/web.xml
2 Tue Oct 09 17:10:00 CEST 2001 META-INF/MANIFEST.MF
1775 Tue Oct 09 17:10:00 CEST 2001 index.jsp
any ideas?
Hans Bausewein
(I tried to run a simple Struts example which uses EJBs but it could also not read the web.xml)
The full web logfile:
WebappLoader[]: Deploying class repositories to work directory /usr/share/java/j2sdkee1.3.1/repository/test2/web
StandardManager[]: Seeding random number generator class java.security.SecureRandom
StandardManager[]: Seeding of random number generator has been completed
ContextConfig[]: Missing application web.xml, using defaults only
ContextConfig[]: Added certificates -> request attribute Valve
StandardWrapper[:default]: Loading container servlet default
default: init
StandardWrapper[:invoker]: Loading container servlet invoker
invoker: init
jsp: init
Internal Error: File /WEB-INF/web.xml not found
HttpConnector Opening server socket on all host IP addresses
HttpConnector[8000] Starting background thread
HttpProcessor[8000][0] Starting background thread
HttpProcessor[8000][1] Starting background thread
HttpProcessor[8000][2] Starting background thread
HttpProcessor[8000][3] Starting background thread
HttpProcessor[8000][4] Starting background thread
HttpConnector Opening server socket on all host IP addresses
HttpConnector[7000] Starting background thread
HttpProcessor[7000][0] Starting background thread
HttpProcessor[7000][1] Starting background thread
HttpProcessor[7000][2] Starting background thread
HttpProcessor[7000][3] Starting background thread
HttpProcessor[7000][4] Starting background thread
WebappLoader[]: Deploying class repositories to work directory /usr/share/java/j2sdkee1.3.1/repository/test2/web
StandardManager[]: Seeding random number generator class java.security.SecureRandom
StandardManager[]: Seeding of random number generator has been completed
ContextConfig[]: Missing application web.xml, using defaults only
ContextConfig[]: Added certificates -> request attribute Valve
StandardWrapper[:default]: Loading container servlet default
default: init
StandardWrapper[:invoker]: Loading container servlet invoker
invoker: init
jsp: init
Internal Error: File /WEB-INF/web.xml not found
HttpConnector Opening server socket on all host IP addresses
HttpConnector[9191] Starting background thread
HttpProcessor[9191][0] Starting background thread
HttpProcessor[9191][1] Starting background thread
HttpProcessor[9191][2] Starting background thread
HttpProcessor[9191][3] Starting background thread
HttpProcessor[9191][4] Starting background thread
WebappLoader[converter]: Deploying class repositories to work directory /usr/share/java/j2sdkee1.3.1/repository/test2/web/converter
StandardManager[converter]: Seeding random number generator class java.security.SecureRandom
StandardManager[converter]: Seeding of random number generator has been completed
ContextConfig[converter]: Added certificates -> request attribute Valve
StandardWrapper[converter:default]: Loading container servlet default
default: init
StandardWrapper[converter:invoker]: Loading container servlet invoker
invoker: init
jsp: init